Skip to content

Commit

Permalink
fix: use milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors committed Aug 28, 2020
1 parent 37c806a commit d79bb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (o *Options) PGOptions() *pg.Options {

if opts.OnConnect == nil && o.StatementTimeout != 0 {
opts.OnConnect = func(conn *pg.Conn) error {
_, err := conn.Exec("SET statement_timeout = ?", o.StatementTimeout/time.Microsecond)
_, err := conn.Exec("SET statement_timeout = ?", o.StatementTimeout/time.Millisecond)
return err
}
}
Expand Down

0 comments on commit d79bb5d

Please sign in to comment.