libstore: drop checkInterrupt from LocalStore::verifyPath

it's only called by verifyStore, and verifyStore is only called by the
daemon and `nix-store --verify`. both pass the promise to `blockOn()`.

Change-Id: I829c0d189fa913cd8566ddd1a578c50e60fb2ddb
This commit is contained in:
eldritch horrors
2025-06-30 21:46:29 +00:00
parent 32cfbe3959
commit 6e7c0812c7
-3
View File
@@ -1585,8 +1585,6 @@ kj::Promise<Result<void>> LocalStore::verifyPath(
bool & errors
)
try {
checkInterrupt();
if (!done.insert(path).second) co_return result::success();
if (!storePathsInStoreDir.count(path)) {
@@ -1628,7 +1626,6 @@ try {
co_return result::current_exception();
}
kj::Promise<Result<unsigned int>> LocalStore::getProtocol()
{
return {result::success(PROTOCOL_VERSION)};