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