mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 07:33:42 -06:00
lint fix
This commit is contained in:
parent
1a5de75c34
commit
549ecfe053
3
go.mod
3
go.mod
@ -148,6 +148,7 @@ require (
|
||||
github.com/spf13/cobra v1.8.0 // @grafana/grafana-app-platform-squad
|
||||
github.com/spf13/pflag v1.0.5 // @grafana-app-platform-squad
|
||||
github.com/spyzhov/ajson v0.9.0 // @grafana/grafana-app-platform-squad
|
||||
github.com/hack-pad/hackpadfs v0.2.1 // @grafana/grafana-app-platform-squad
|
||||
github.com/stretchr/testify v1.9.0 // @grafana/grafana-backend-group
|
||||
github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf // @grafana/grafana-backend-group
|
||||
github.com/ua-parser/uap-go v0.0.0-20211112212520-00c877edfe0f // @grafana/grafana-backend-group
|
||||
@ -443,8 +444,6 @@ require (
|
||||
sigs.k8s.io/yaml v1.3.0 // indirect; @grafana-app-platform-squad
|
||||
)
|
||||
|
||||
require github.com/hack-pad/hackpadfs v0.2.1
|
||||
|
||||
// Use fork of crewjam/saml with fixes for some issues until changes get merged into upstream
|
||||
replace github.com/crewjam/saml => github.com/grafana/saml v0.4.15-0.20240523142256-cc370b98af7c
|
||||
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@ -91,6 +92,9 @@ func NewResourceServer(opts ResourceServerOptions) (ResourceServer, error) {
|
||||
}
|
||||
|
||||
if opts.NextEventID == nil {
|
||||
if opts.NodeID == 0 {
|
||||
opts.NodeID = rand.Int63n(1024)
|
||||
}
|
||||
eventNode, err := snowflake.NewNode(opts.NodeID)
|
||||
if err != nil {
|
||||
return nil, apierrors.NewInternalError(
|
||||
|
Loading…
Reference in New Issue
Block a user