mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 07:03:12 +00:00
make path threadvar
This commit is contained in:
parent
7ceccf9a72
commit
2eb120bb66
@ -155,6 +155,9 @@ method put*(
|
||||
return success()
|
||||
|
||||
proc dirWalker(path: string): iterator: string {.gcsafe.} =
|
||||
var localPath {.threadvar.}
|
||||
|
||||
localPath = path
|
||||
return iterator(): string =
|
||||
try:
|
||||
for p in path.walkDirRec(yieldFilter = {pcFile}, relative = true):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user