remove close method

This commit is contained in:
Fenny
2020-11-05 06:08:05 +01:00
parent 5571999805
commit 86b9cfe4c1
7 changed files with 3 additions and 37 deletions

View File

@@ -157,11 +157,6 @@ func (s *Storage) Clear() error {
return s.col.Drop(context.Background())
}
// Close database connection
func (s *Storage) Close() error {
return s.db.Client().Disconnect(context.Background())
}
// Acquire item from pool
func (s *Storage) acquireItem() *item {
return s.items.Get().(*item)