From a7501a68a51994654aa1a1a283907a883c46e3b9 Mon Sep 17 00:00:00 2001 From: Bob Callaway Date: Mon, 27 Nov 2023 08:18:49 -0500 Subject: [PATCH] update indexstorage interface to reduce roundtrips (#1838) Signed-off-by: Bob Callaway --- pkg/api/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index 1495a469c..9eabb747c 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -195,7 +195,9 @@ func StopAPI() { api.checkpointPublishCancel() if api.newEntryPublisher != nil { - api.newEntryPublisher.Close() + if err := api.newEntryPublisher.Close(); err != nil { + log.Logger.Errorf("shutting down newEntryPublisher: %v", err) + } } if indexStorageClient != nil {