Skip to content

Commit 6f9ab04

Browse files
authored
Add closer to couchbase (#3036)
Signed-off-by: Filinto Duran <[email protected]>
1 parent 8b6156f commit 6f9ab04

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

state/couchbase/couchbase.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,10 @@ func (cbs *Couchbase) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
271271
metadata.GetMetadataInfoFromStructType(reflect.TypeOf(metadataStruct), &metadataInfo, metadata.StateStoreType)
272272
return
273273
}
274+
275+
func (cbs *Couchbase) Close() error {
276+
if cbs.bucket == nil {
277+
return nil
278+
}
279+
return cbs.bucket.Close()
280+
}

0 commit comments

Comments
 (0)