feat(backend/db): removed unnecessary logs

This commit is contained in:
Alexander Zavorotynskiy 2022-10-26 11:52:36 +02:00
parent 3300822bc8
commit 7e53bcf17c
2 changed files with 1 additions and 8 deletions

View file

@ -13,11 +13,6 @@ type ProjectMeta struct {
expirationTime time.Time
}
// !TODO: remove old sessions by timeout to avoid memleaks
/*
* Cache layer around the stateless PG adapter
**/
type PGCache struct {
*postgres.Conn
sessions map[uint64]*Session
@ -26,7 +21,6 @@ type PGCache struct {
projectExpirationTimeout time.Duration
}
// TODO: create conn automatically
func NewPGCache(pgConn *postgres.Conn, projectExpirationTimeoutMs int64) *PGCache {
return &PGCache{
Conn: pgConn,

View file

@ -55,8 +55,7 @@ func NewConn(url string, queueLimit, sizeLimit int, metrics *monitoring.Metrics)
}
c, err := pgxpool.Connect(context.Background(), url)
if err != nil {
log.Println(err)
log.Fatalln("pgxpool.Connect Error")
log.Fatalf("pgxpool.Connect err: %s", err)
}
conn := &Conn{
batches: make(map[uint64]*pgx.Batch),