database: use postgresQueryTimeout for PostgresDB StoreMessages

using the sqliteQueryTimeout means a `undefined: sqliteQueryTimeout`
when building with `-tags=nosqlite`
This commit is contained in:
sentriz 2023-11-06 14:13:48 +00:00 committed by Simon Ser
parent e6d6476a0d
commit 5ae86d69cc
1 changed files with 1 additions and 1 deletions

View File

@ -933,7 +933,7 @@ func (db *PostgresDB) StoreMessages(ctx context.Context, networkID int64, name s
return nil, nil
}
ctx, cancel := context.WithTimeout(ctx, time.Duration(len(msgs))*sqliteQueryTimeout)
ctx, cancel := context.WithTimeout(ctx, time.Duration(len(msgs))*postgresQueryTimeout)
defer cancel()
tx, err := db.db.BeginTx(ctx, nil)