Instead of instantiating it once in every loop iteration, put it in an Arc, and clone that before passing it to the spawned task. Change-Id: I5d9c838f27048726166fa50206d1edd5ed6849b5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8632 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> |
||
|---|---|---|
| .. | ||
| bin | ||
| blobservice | ||
| directoryservice | ||
| nar | ||
| pathinfoservice | ||
| proto | ||
| tests | ||
| digests.rs | ||
| errors.rs | ||
| import.rs | ||
| lib.rs | ||
| store_io.rs | ||