Skip to content

Conversation

@gravetii
Copy link
Contributor

@gravetii gravetii commented Sep 8, 2024

No description provided.

@gravetii gravetii force-pushed the refactor-unique-method branch from b419537 to 63106dc Compare September 8, 2024 04:25
@lenguyenthanh lenguyenthanh merged commit 5f292da into lichess-org:master Sep 8, 2024
@lenguyenthanh
Copy link
Member

this is much better, thanks!

@gravetii gravetii deleted the refactor-unique-method branch September 8, 2024 05:39
.foldRight(List.empty[ChangeStreamDocument[A]] -> Set.empty) { case (change, p @ (acc, ids)) =>
val id = change.docId.getOrElse("")
if !ids.contains(id) && id != ""
if change.docId.exists(ids.contains)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @lenguyenthanh this should actually be if change.docId.exists(!ids.contains)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed the patch here - #308

gravetii added a commit to gravetii/lila-search that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants