Skip to content

Commit 0859a53

Browse files
chore: apply linting
1 parent 3985226 commit 0859a53

5 files changed

Lines changed: 18 additions & 15 deletions

File tree

rpc/jsonrpc/jsonrpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"sync/atomic"
1313

1414
"github.com/davecgh/go-spew/spew"
15-
stdjson "github.com/goccy/go-json"
1615
gojson "github.com/goccy/go-json"
16+
stdjson "github.com/goccy/go-json"
1717
"github.com/google/uuid"
1818
)
1919

rpc/util_test.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ import (
1111
// Layout references for the test data below:
1212
//
1313
// SPL Token (solana-program/token):
14-
// Mint::LEN = 82
15-
// Account::LEN = 165
14+
//
15+
// Mint::LEN = 82
16+
// Account::LEN = 165
1617
//
1718
// Token-2022 (solana-program/token-2022):
18-
// Extended records place a 1-byte AccountType discriminator at offset
19-
// Account::LEN (= 165). Mint base (82 bytes) is padded with 83 zeros so
20-
// Mint and Account share the discriminator offset.
2119
//
22-
// AccountType::Uninitialized = 0
23-
// AccountType::Mint = 1
24-
// AccountType::Account = 2
20+
// Extended records place a 1-byte AccountType discriminator at offset
21+
// Account::LEN (= 165). Mint base (82 bytes) is padded with 83 zeros so
22+
// Mint and Account share the discriminator offset.
23+
//
24+
// AccountType::Uninitialized = 0
25+
// AccountType::Mint = 1
26+
// AccountType::Account = 2
2527
//
26-
// Extensions follow as TLV: [u16 LE type][u16 LE length][value...].
28+
// Extensions follow as TLV: [u16 LE type][u16 LE length][value...].
2729
const (
2830
testAccountTypeUninitialized uint8 = 0
2931
testAccountTypeMint uint8 = 1

rpc/ws/signatureSubscribe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (v *SignatureResultValue) UnmarshalJSON(data []byte) error {
117117
}
118118

119119
// SignatureSubscribe subscribes to confirmation notifications for a
120-
// single transaction signature. The subscription is cancelled by the
120+
// single transaction signature. The subscription is canceled by the
121121
// server once the notification fires.
122122
func (cl *Client) SignatureSubscribe(
123123
signature solana.Signature,

rpc/ws/subscriptions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func TestConfigParams_Wire(t *testing.T) {
330330
require.NotNil(t, got["dataSlice"])
331331
require.Equal(t, uint64(100), got["minContextSlot"])
332332
// MinContextSlot is written as a plain uint64, not as a pointer,
333-
// so JSON marshalling lands on a number (matching Agave).
333+
// so JSON marshaling lands on a number (matching Agave).
334334
require.IsType(t, uint64(0), got["minContextSlot"])
335335
})
336336

transaction_bench_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
//
1212
// numInstructions: how many instructions in the transaction.
1313
// accountsPerIx: how many AccountMeta entries each instruction references.
14-
// (first is always a signer; second is always writable; rest readonly)
14+
//
15+
// (first is always a signer; second is always writable; rest readonly)
1516
func buildBenchInstructions(numInstructions, accountsPerIx int) ([]Instruction, Hash) {
1617
// Pre-generate a pool of unique accounts so instructions share some accounts
1718
// (realistic — the same fee payer / writable state account appears in many ixs)
@@ -98,9 +99,9 @@ func buildBenchInstructionsWithLookups(numInstructions, accountsPerIx int) ([]In
9899
// Upper bound is ~10 instructions / ~30 accounts per ix — beyond that
99100
// becomes a synthetic stress shape that doesn't represent real traffic.
100101
var benchTxShapes = []struct {
101-
name string
102+
name string
102103
numInstructions int
103-
accountsPerIx int
104+
accountsPerIx int
104105
}{
105106
{"small_2ix_5accts", 2, 5},
106107
{"medium_5ix_15accts", 5, 15},

0 commit comments

Comments
 (0)