Skip to content

Commit a7501a6

Browse files
authored
update indexstorage interface to reduce roundtrips (#1838)
Signed-off-by: Bob Callaway <bcallaway@google.com>
1 parent 69f95e9 commit a7501a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/api/api.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ func StopAPI() {
195195
api.checkpointPublishCancel()
196196

197197
if api.newEntryPublisher != nil {
198-
api.newEntryPublisher.Close()
198+
if err := api.newEntryPublisher.Close(); err != nil {
199+
log.Logger.Errorf("shutting down newEntryPublisher: %v", err)
200+
}
199201
}
200202

201203
if indexStorageClient != nil {

0 commit comments

Comments
 (0)