Skip to content

Commit

Permalink
ci: go mod, linter
Browse files Browse the repository at this point in the history
  • Loading branch information
distractedm1nd committed Feb 14, 2025
1 parent 822a22a commit 697a015
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ require (
github.com/gofrs/flock v0.12.1
github.com/gogo/protobuf v1.3.3
github.com/golang/mock v1.6.0
github.com/gorilla/mux v1.8.1
github.com/grafana/otel-profiling-go v0.5.1
github.com/grafana/pyroscope-go v1.1.2
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
Expand Down Expand Up @@ -185,6 +184,7 @@ require (
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.2 // indirect
github.com/gorilla/handlers v1.5.2 // indirect
github.com/gorilla/mux v1.8.1 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
Expand Down
34 changes: 17 additions & 17 deletions nodebuilder/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@ type ConfigLoader func() (*Config, error)
// Config is main configuration structure for a Node.
// It combines configuration units for all Node subsystems.
type Config struct {
Node node.Config
Core core.Config
State state.Config
P2P p2p.Config
RPC rpc.Config
Share share.Config
Header header.Config
DASer das.Config `toml:",omitempty"`
Pruner pruner.Config
Node node.Config
Core core.Config
State state.Config
P2P p2p.Config
RPC rpc.Config
Share share.Config
Header header.Config
DASer das.Config `toml:",omitempty"`
Pruner pruner.Config
}

// DefaultConfig provides a default Config for a given Node Type 'tp'.
// NOTE: Currently, configs are identical, but this will change.
func DefaultConfig(tp node.Type) *Config {
commonConfig := &Config{
Node: node.DefaultConfig(tp),
Core: core.DefaultConfig(),
State: state.DefaultConfig(),
P2P: p2p.DefaultConfig(tp),
RPC: rpc.DefaultConfig(),
Share: share.DefaultConfig(tp),
Header: header.DefaultConfig(tp),
Pruner: pruner.DefaultConfig(),
Node: node.DefaultConfig(tp),
Core: core.DefaultConfig(),
State: state.DefaultConfig(),
P2P: p2p.DefaultConfig(tp),
RPC: rpc.DefaultConfig(),
Share: share.DefaultConfig(tp),
Header: header.DefaultConfig(tp),
Pruner: pruner.DefaultConfig(),
}

switch tp {
Expand Down
1 change: 0 additions & 1 deletion nodebuilder/tests/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func TestBlobModule(t *testing.T) {
assert.Equal(t, v1[0].Commitment, blobV1.Commitment)
assert.NotNil(t, blobV1.Signer())
assert.Equal(t, blobV1.Signer(), v1[0].Signer())

},
},
{
Expand Down

0 comments on commit 697a015

Please sign in to comment.