publish: fix backoff

This commit is contained in:
Liam Fitzgerald 2020-10-29 09:34:15 +10:00
parent 4079de05f6
commit aabd890b6d

View File

@ -523,7 +523,7 @@
:: if nacked, then set a exponential backoff and retry
=/ nack-count=@ud
+((~(gut by migrate) rid 0))
?: (gte 24 nack-count)
?: (gte nack-count 24)
~& >>> "failed to migrate notebook {<rid>} to graph-store"
[~ this]
:_ this(migrate (~(put by migrate) rid nack-count))