ndb: avoid double constructor on References

This commit is contained in:
William Casarin
2023-07-24 11:05:18 -07:00
parent 1e9e4a7f3a
commit 6fa9149939
3 changed files with 5 additions and 5 deletions

View File

@@ -39,12 +39,12 @@ struct References: Sequence, IteratorProtocol {
}
func ids() -> LazyFilterSequence<References> {
static func ids(tags: TagsSequence) -> LazyFilterSequence<References> {
References(tags: tags).lazy
.filter() { ref in ref.key == "e" }
}
func pubkeys() -> LazyFilterSequence<References> {
static func pubkeys(tags: TagsSequence) -> LazyFilterSequence<References> {
References(tags: tags).lazy
.filter() { ref in ref.key == "p" }
}