Skip to content

Commit 9880ed9

Browse files
authored
Merge pull request #113 from bgilbert/lambda
synctiles: avoid lambda in `Pool` initializer
2 parents 97a6179 + 4679505 commit 9880ed9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

demo/_synctiles.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,7 @@ def sync_slide(
508508
mpp = None
509509

510510
# Start compute pool
511-
pool = Pool(
512-
workers, lambda: pool_init(storage.bucket.name, slide_path)
513-
)
511+
pool = Pool(workers, pool_init, (storage.bucket.name, slide_path))
514512
try:
515513
# Tile slide
516514
def do_tile(

0 commit comments

Comments
 (0)