mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-10 03:55:30 +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()
|
await lock.acquire()
|
||||||
try:
|
try:
|
||||||
body
|
body
|
||||||
await sleepAsync(1.millis)
|
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
lock.release()
|
lock.release()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user