Skip to content

Commit

Permalink
Make retry less aggressive by adding a delay (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr authored Jul 18, 2024
1 parent 1510c21 commit 28abde0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private[shardcake] object EntityManager {
(replyId match {
case Some(replyId) => sharding.initReply(replyId, replyChannel) *> queue.offer(req)
case None => queue.offer(req) *> replyChannel.end
}).catchAllCause(_ => send(entityId, req, replyId, replyChannel))
}).catchAllCause(_ => Clock.sleep(100 millis) *> send(entityId, req, replyId, replyChannel))
}
} yield ()

Expand Down

0 comments on commit 28abde0

Please sign in to comment.