database: use postgresQueryTimeout for PostgresDB StoreMessages
using the sqliteQueryTimeout means a `undefined: sqliteQueryTimeout` when building with `-tags=nosqlite`
This commit is contained in:
parent
e6d6476a0d
commit
5ae86d69cc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user