diff --git a/rules/standard/storage.go b/rules/standard/storage.go index 97590a1..31699f1 100644 --- a/rules/standard/storage.go +++ b/rules/standard/storage.go @@ -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) { diff --git a/services/api/grpc/service.go b/services/api/grpc/service.go index eae8849..b4e0057 100644 --- a/services/api/grpc/service.go +++ b/services/api/grpc/service.go @@ -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" )