From e21edc9d93dea7e756c5d6261650367764d7e2e0 Mon Sep 17 00:00:00 2001 From: AnkushinDaniil Date: Sat, 25 Jan 2025 16:59:01 +0300 Subject: [PATCH] Fix linter: --- rpc/handlers.go | 4 ++-- rpc/subscriptions_test.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rpc/handlers.go b/rpc/handlers.go index bc48796845..2cce062d46 100644 --- a/rpc/handlers.go +++ b/rpc/handlers.go @@ -406,7 +406,7 @@ func (h *Handler) Methods() ([]jsonrpc.Method, string) { //nolint: funlen }, "/v0_8" } -func (h *Handler) MethodsV0_7() ([]jsonrpc.Method, string) { //nolint: funlen, dupl +func (h *Handler) MethodsV0_7() ([]jsonrpc.Method, string) { //nolint: funlen return []jsonrpc.Method{ { Name: "starknet_chainId", @@ -575,7 +575,7 @@ func (h *Handler) MethodsV0_7() ([]jsonrpc.Method, string) { //nolint: funlen, d }, "/v0_7" } -func (h *Handler) MethodsV0_6() ([]jsonrpc.Method, string) { //nolint: funlen, dupl +func (h *Handler) MethodsV0_6() ([]jsonrpc.Method, string) { //nolint: funlen return []jsonrpc.Method{ { Name: "starknet_chainId", diff --git a/rpc/subscriptions_test.go b/rpc/subscriptions_test.go index a62fa4d8b3..44f75c1ed2 100644 --- a/rpc/subscriptions_test.go +++ b/rpc/subscriptions_test.go @@ -867,6 +867,7 @@ func TestSubscriptionReorg(t *testing.T) { } func TestSubscribePendingTxs(t *testing.T) { + t.Parallel() tests := []struct { name string subscribeMsg string