database: add Close()

This commit is contained in:
Cadey Ratio 2017-04-28 21:18:19 -07:00
parent 4186b0c6b0
commit 66e4ea082b
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +0,0 @@
route: ./route
httpagent: ./httpagent -token 850045ee-5bec-4c14-9392-a4aa85ec3220 -domain embody-fire-shad.route.xeserv.us -server embody-fire-shad.route.xeserv.us:36971 -method tcp
helloserver: ./helloserver -port 9090

View File

@ -241,3 +241,7 @@ func (b *BoltDBStorage) DeleteCert(ct context.Context, key string) error {
return b.db.DeleteStruct(&cc)
}
func (b *BoltDBStorage) Close() error {
return b.db.Close()
}

View File

@ -25,6 +25,8 @@ type Storage interface {
GetCert(ctx context.Context, key string) ([]byte, error)
PutCert(ctx context.Context, key string, data []byte) error
DeleteCert(ctx context.Context, key string) error
Close() error
}
type storageManager struct {