Skip to content

Commit 18ea1a4

Browse files
committed
Make retry less aggressive by adding a delay
1 parent 1510c21 commit 18ea1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entities/src/main/scala/com/devsisters/shardcake/internal/EntityManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private[shardcake] object EntityManager {
130130
(replyId match {
131131
case Some(replyId) => sharding.initReply(replyId, replyChannel) *> queue.offer(req)
132132
case None => queue.offer(req) *> replyChannel.end
133-
}).catchAllCause(_ => send(entityId, req, replyId, replyChannel))
133+
}).catchAllCause(_ => Clock.sleep(100 millis) *> send(entityId, req, replyId, replyChannel))
134134
}
135135
} yield ()
136136

0 commit comments

Comments
 (0)