mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-29 18:00:07 +02:00
fix various typos (#7690)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7690 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: floss4good <floss4good@noreply.codeberg.org> Reviewed-by: Beowulf <beowulf@beocode.eu> Co-authored-by: Ellen Emilia Anna Zscheile <fogti+devel@ytrizja.de> Co-committed-by: Ellen Emilia Anna Zscheile <fogti+devel@ytrizja.de>
This commit is contained in:
parent
9e70ff57b4
commit
a0cc05ba92
9 changed files with 21 additions and 22 deletions
|
@ -103,8 +103,8 @@ func TestSlowQuery(t *testing.T) {
|
|||
// It's not possible to clean this up with XORM, but it's luckily not harmful
|
||||
// to leave around.
|
||||
engine.AddHook(&db.SlowQueryHook{
|
||||
Treshold: time.Second * 10,
|
||||
Logger: log.GetLogger("slow-query"),
|
||||
Threshold: time.Second * 10,
|
||||
Logger: log.GetLogger("slow-query"),
|
||||
})
|
||||
|
||||
// NOOP query.
|
||||
|
@ -114,8 +114,8 @@ func TestSlowQuery(t *testing.T) {
|
|||
assert.False(t, stopped)
|
||||
|
||||
engine.AddHook(&db.SlowQueryHook{
|
||||
Treshold: 0, // Every query should be logged.
|
||||
Logger: log.GetLogger("slow-query"),
|
||||
Threshold: 0, // Every query should be logged.
|
||||
Logger: log.GetLogger("slow-query"),
|
||||
})
|
||||
|
||||
// NOOP query.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue