This commit is contained in:
Muhammed Efe Çetin
2022-11-03 23:36:06 +03:00
parent 90e5588e5d
commit 1fc6144cc0
3 changed files with 15 additions and 1 deletions

View File

@@ -160,6 +160,11 @@ func (s *Storage) Close() error {
return nil
}
// Return database client
func (s *Storage) Conn() *pgxpool.Pool {
return s.db
}
// gcTicker starts the gc ticker
func (s *Storage) gcTicker() {
ticker := time.NewTicker(s.gcInterval)