Add closer to couchbase (#3036)

Signed-off-by: Filinto Duran <filinto@diagrid.io>
This commit is contained in:
Filinto Duran 2023-08-03 10:19:21 -05:00 committed by GitHub
parent 8b6156f4f7
commit 6f9ab04a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -271,3 +271,10 @@ func (cbs *Couchbase) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
metadata.GetMetadataInfoFromStructType(reflect.TypeOf(metadataStruct), &metadataInfo, metadata.StateStoreType)
return
}
func (cbs *Couchbase) Close() error {
if cbs.bucket == nil {
return nil
}
return cbs.bucket.Close()
}