mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-09 11:35:43 +00:00
remove unneeded sleep
This commit is contained in:
parent
4b62a0baf2
commit
4790b54fd2
@ -138,7 +138,6 @@ template withLock*(lock: AsyncLock, body: untyped) =
|
||||
await lock.acquire()
|
||||
try:
|
||||
body
|
||||
await sleepAsync(1.millis)
|
||||
finally:
|
||||
try:
|
||||
lock.release()
|
||||
|
Loading…
x
Reference in New Issue
Block a user