Skip to content

Commit

Permalink
update indexstorage interface to reduce roundtrips (#1838)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <bcallaway@google.com>
  • Loading branch information
bobcallaway authored Nov 27, 2023
1 parent 69f95e9 commit a7501a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a7501a6

Please sign in to comment.