Skip to content

Commit 3d91d12

Browse files
committed
lint
1 parent fa6ffea commit 3d91d12

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ type Config struct {
215215
// DAConfig contains all Data Availability configuration parameters
216216
type DAConfig struct {
217217
Address string `mapstructure:"address" yaml:"address" comment:"Address of the data availability layer service (host:port). This is the endpoint where Rollkit will connect to submit and retrieve data."`
218-
AuthToken string `mapstructure:"auth_token" yaml:"auth_token" comment:"Authentication token for the data availability layer service. Required if the DA service needs authentication."`
218+
AuthToken string `mapstructure:"auth_token" yaml:"auth_token" comment:"Authentication token for the data availability layer service. Required if the DA service needs authentication."` //nolint:gosec // this is ok.
219219
SubmitOptions string `mapstructure:"submit_options" yaml:"submit_options" comment:"Additional options passed to the DA layer when submitting data. Format depends on the specific DA implementation being used."`
220220
SigningAddresses []string `mapstructure:"signing_addresses" yaml:"signing_addresses" comment:"List of addresses to use for DA submissions. When multiple addresses are provided, they will be used in round-robin fashion to prevent sequence mismatches. Useful for high-throughput chains."`
221221
Namespace string `mapstructure:"namespace" yaml:"namespace" comment:"Namespace ID used when submitting blobs to the DA layer. When a DataNamespace is provided, only the header is sent to this namespace."`

pkg/rpc/server/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestHealthReady_aggregatorBlockDelay(t *testing.T) {
120120

121121
req, err := http.NewRequestWithContext(ctx, http.MethodGet, ts.URL+"/health/ready", nil)
122122
require.NoError(t, err)
123-
resp, err := http.DefaultClient.Do(req)
123+
resp, err := http.DefaultClient.Do(req) //nolint:gosec // ok to use default client in tests
124124
require.NoError(t, err)
125125
t.Cleanup(func() { _ = resp.Body.Close() })
126126

tools/cache-analyzer/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func formatTable(events []eventEntry) string {
7878
daHeightStr := fmt.Sprintf("%d", entry.DAHeight)
7979

8080
// Format each row
81-
sb.WriteString(fmt.Sprintf("│ %-11s │ %-12s │ %-67s │\n",
82-
heightStr, daHeightStr, truncateString(entry.Details, 67)))
81+
fmt.Fprintf(&sb, "│ %-11s │ %-12s │ %-67s │\n",
82+
heightStr, daHeightStr, truncateString(entry.Details, 67))
8383
}
8484

8585
sb.WriteString("└─────────────┴──────────────┴─────────────────────────────────────────────────────────────────────┘\n")

0 commit comments

Comments
 (0)