Skip to content

Commit c024dff

Browse files
committed
fix: remove ptr int func
1 parent f4fd105 commit c024dff

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/timelock/worker_solana.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ func (w *WorkerSolana) Listen(ctx context.Context) error {
148148
return nil
149149
}
150150

151-
// ptrInt is a helper to take an int and return *int.
152-
func ptrInt(i int) *int { return &i }
153-
154151
// pollNewSignatures continuously fetches only new signatures touching your program,
155152
// then loads each confirmed transaction so you can parse its LogMessages.
156153
func (w *WorkerSolana) pollNewSignatures(
@@ -195,7 +192,7 @@ func (w *WorkerSolana) pollNewSignatures(
195192
ctx,
196193
w.timelockProgramKey,
197194
&rpc.GetSignaturesForAddressOpts{
198-
Limit: ptrInt(w.pollSize),
195+
Limit: &w.pollSize,
199196
Until: until,
200197
},
201198
)

0 commit comments

Comments
 (0)