mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
all: fix staticcheck issues
This commit is contained in:
parent
6017612c55
commit
315d2ab17d
56 changed files with 358 additions and 338 deletions
|
|
@ -205,7 +205,7 @@ func (mach *OlmMachine) FlushStore(ctx context.Context) error {
|
|||
func (mach *OlmMachine) timeTrace(ctx context.Context, thing string, expectedDuration time.Duration) func() {
|
||||
start := time.Now()
|
||||
return func() {
|
||||
duration := time.Now().Sub(start)
|
||||
duration := time.Since(start)
|
||||
if duration > expectedDuration {
|
||||
zerolog.Ctx(ctx).Warn().
|
||||
Str("action", thing).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue