Skip to content

Commit

Permalink
polish: remove scheduler log
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Aug 26, 2020
1 parent a14eb00 commit 2cde485
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package scheduler
import (
"context"
"database/sql"
"time"

"golang.org/x/xerrors"
)

Expand Down Expand Up @@ -65,11 +63,6 @@ func refreshTopMinerByBaseReward(ctx context.Context, db *sql.DB) error {
default:
}

t := time.Now()
defer func() {
log.Debugw("refresh top_miners_by_base_reward", "duration", time.Since(t).String())
}()

_, err := db.Exec("refresh materialized view top_miners_by_base_reward;")
if err != nil {
return xerrors.Errorf("refresh top_miners_by_base_reward: %w", err)
Expand Down

0 comments on commit 2cde485

Please sign in to comment.