From f50ac551c56569e109a8350f27dab53bb2378d4d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 15:43:50 +0000 Subject: *: Remove Close from object/ref store interfaces At places where you own the object, you should have the literal implementation with Close. If you're using it via the interface, then you probably don't own that store, and you shouldn't be closing it. Thanks to Michael Muré from git-bug for this point. --- network/receivepack/service/run_hook.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'network') diff --git a/network/receivepack/service/run_hook.go b/network/receivepack/service/run_hook.go index ce8f8b7e..f08cc337 100644 --- a/network/receivepack/service/run_hook.go +++ b/network/receivepack/service/run_hook.go @@ -96,10 +96,6 @@ func (service *Service) runHook( } defer func() { - if quarantineObjectsStore != nil { - _ = quarantineObjectsStore.Close() - } - if quarantinePackedStore != nil { _ = quarantinePackedStore.Close() } -- cgit v1.3.1-10-gc9f91