Add closer to couchbase (#3036)
Signed-off-by: Filinto Duran <filinto@diagrid.io>
This commit is contained in:
parent
8b6156f4f7
commit
6f9ab04a33
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue