Skip to content

Commit

Permalink
Go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
linuskendall committed Jun 5, 2024
1 parent 9733398 commit 57fb631
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var (
configPath string
internalListen string
listen string
rpc string
rpc string
maxSnapshotAge uint64
)

Expand Down
16 changes: 8 additions & 8 deletions internal/integrationtest/tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func TestTracker(t *testing.T) {
[]types.SnapshotSource{
{
SnapshotInfo: types.SnapshotInfo{
Slot: 103,
Slot: 103,
BaseSlot: 103,
Hash: solana.MustHashFromBase58("7w4zb1jh47zY5FPMPyRzDSmYf1CPirVP9LmTr5xWEs6X"),
Hash: solana.MustHashFromBase58("7w4zb1jh47zY5FPMPyRzDSmYf1CPirVP9LmTr5xWEs6X"),
Files: []*types.SnapshotFile{
{
FileName: "snapshot-103-7w4zb1jh47zY5FPMPyRzDSmYf1CPirVP9LmTr5xWEs6X.tar.bz2",
Expand All @@ -122,9 +122,9 @@ func TestTracker(t *testing.T) {
},
{
SnapshotInfo: types.SnapshotInfo{
Slot: 102,
Slot: 102,
BaseSlot: 102,
Hash: solana.MustHashFromBase58("7sAawX1cAHVpfZGNtUAYKX2KPzdd1uPUZUTaLteWX4SB"),
Hash: solana.MustHashFromBase58("7sAawX1cAHVpfZGNtUAYKX2KPzdd1uPUZUTaLteWX4SB"),
Files: []*types.SnapshotFile{
{
FileName: "snapshot-102-7sAawX1cAHVpfZGNtUAYKX2KPzdd1uPUZUTaLteWX4SB.tar.bz2",
Expand All @@ -139,9 +139,9 @@ func TestTracker(t *testing.T) {
},
{
SnapshotInfo: types.SnapshotInfo{
Slot: 101,
Slot: 101,
BaseSlot: 101,
Hash: solana.MustHashFromBase58("7oGBJ2HXGT17Fs9QNxu6RbH68z4rJxHZyc9gqhLWoFmq"),
Hash: solana.MustHashFromBase58("7oGBJ2HXGT17Fs9QNxu6RbH68z4rJxHZyc9gqhLWoFmq"),
Files: []*types.SnapshotFile{
{
FileName: "snapshot-101-7oGBJ2HXGT17Fs9QNxu6RbH68z4rJxHZyc9gqhLWoFmq.tar.bz2",
Expand All @@ -156,9 +156,9 @@ func TestTracker(t *testing.T) {
},
{
SnapshotInfo: types.SnapshotInfo{
Slot: 100,
Slot: 100,
BaseSlot: 100,
Hash: solana.MustHashFromBase58("7jMmeXZSNcWPrB2RsTdeXfXrsyW5c1BfPjqoLW2X5T7V"),
Hash: solana.MustHashFromBase58("7jMmeXZSNcWPrB2RsTdeXfXrsyW5c1BfPjqoLW2X5T7V"),
Files: []*types.SnapshotFile{
{
FileName: "snapshot-100-7jMmeXZSNcWPrB2RsTdeXfXrsyW5c1BfPjqoLW2X5T7V.tar.bz2",
Expand Down
2 changes: 1 addition & 1 deletion internal/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (h *Handler) GetSnapshots(c *gin.Context) {
}

var entries []*index.SnapshotEntry
if query.Slot == 0 {
if query.Slot == 0 {
entries = h.DB.GetAllSnapshots()
} else {
entries = h.DB.GetSnapshotsAtSlot(query.Slot)
Expand Down

0 comments on commit 57fb631

Please sign in to comment.