Skip to content

Commit

Permalink
remove optimization that breaks results submission (as currently code…
Browse files Browse the repository at this point in the history
…d in socket.ts)
  • Loading branch information
schlawg authored Nov 17, 2024
1 parent 7504a2e commit 5f19d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api/src/main/SocketTestResult.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class SocketTestResult(resultsDb: lila.db.AsyncCollFailingSilently)(using
object SocketTest:

def isUserInTestBucket(net: NetConfig)(using ctx: Context) =
net.socketTest && ctx.pref.usingAltSocket.isEmpty && ctx.userId.exists(_.value.hashCode % 128 == 0)
ctx.pref.usingAltSocket.isEmpty && ctx.userId.exists(_.value.hashCode % 128 == 0)

def socketEndpoints(net: NetConfig)(using ctx: Context): List[String] =
ctx.pref.usingAltSocket.match
Expand Down

0 comments on commit 5f19d89

Please sign in to comment.