Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Jan 18, 2024
1 parent 3cff201 commit 4ec3efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rules/standard/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func NewStore(ctx context.Context, base string) (*Store, error) {
// Garbage collect every day or two.
// Use a random offset to avoid multiple Dirk instances started simultaneously
// running this procedure at the same time.
//nolint:gosec
period := 24*time.Hour + time.Duration(int(rand.Int31()%60*24))*time.Minute
ticker := time.NewTicker(period)
go func(db *badger.DB) {
Expand Down
2 changes: 1 addition & 1 deletion services/api/grpc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
_ "google.golang.org/grpc/encoding/gzip"
_ "google.golang.org/grpc/encoding/gzip" // Enable GZIP compression.
"google.golang.org/grpc/grpclog"
)

Expand Down

0 comments on commit 4ec3efb

Please sign in to comment.