libstore: asyncify Store::importPaths

Change-Id: Ic330b9213209fd7d3cccf90af7f3d6b41aede9b5
This commit is contained in:
eldritch horrors
2025-02-08 17:26:19 +00:00
parent 70026b1696
commit e85242d6da
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ void importPaths(int fd, int dontCheckSigs)
PPCODE:
try {
FdSource source(fd);
store()->importPaths(source, dontCheckSigs ? NoCheckSigs : CheckSigs);
aio().blockOn(store()->importPaths(source, dontCheckSigs ? NoCheckSigs : CheckSigs));
} catch (Error & e) {
croak("%s", e.what());
}