Skip to content

Commit 9cf8f7f

Browse files
daschwandencoperni
andauthored
Update fleetspeak/src/server/spanner/spanner.go
Co-authored-by: coperni <[email protected]>
1 parent bf7bb89 commit 9cf8f7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fleetspeak/src/server/spanner/spanner.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ func MakeDatastore(projectId, inst, db, pubsubTopic, pubsubSubscription string)
8787
// Close closes the underlying database resources.
8888
func (d *Datastore) Close() error {
8989
d.dbClient.Close()
90-
d.pubsubClient.Close()
90+
if err := d.pubsubClient.Close(); err != nil {
91+
return err
92+
}
9193
return nil
9294
}
9395

0 commit comments

Comments
 (0)