We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4fd105 commit c024dffCopy full SHA for c024dff
1 file changed
pkg/timelock/worker_solana.go
@@ -148,9 +148,6 @@ func (w *WorkerSolana) Listen(ctx context.Context) error {
148
return nil
149
}
150
151
-// ptrInt is a helper to take an int and return *int.
152
-func ptrInt(i int) *int { return &i }
153
-
154
// pollNewSignatures continuously fetches only new signatures touching your program,
155
// then loads each confirmed transaction so you can parse its LogMessages.
156
func (w *WorkerSolana) pollNewSignatures(
@@ -195,7 +192,7 @@ func (w *WorkerSolana) pollNewSignatures(
195
192
ctx,
196
193
w.timelockProgramKey,
197
194
&rpc.GetSignaturesForAddressOpts{
198
- Limit: ptrInt(w.pollSize),
+ Limit: &w.pollSize,
199
Until: until,
200
},
201
)
0 commit comments