rpcclient: remove default PolingBased poll interval

pollTime is never 0 since MillisecondsPerBlock protocol configuration value
is present in `getversion` RPC response since 0.97.3 release. We don't have such
old RPC servers in the network anymore, thus this fallback code may be
safely removed.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
Anna Shaleva 2024-08-13 18:57:31 +03:00
parent 7766168c19
commit 3e3991cef8

View file

@ -167,9 +167,6 @@ func (w *PollingBased) WaitAny(ctx context.Context, vub uint32, hashes ...util.U
failedAttempt int
pollTime = time.Millisecond * time.Duration(w.version.Protocol.MillisecondsPerBlock) / 2
)
if pollTime == 0 {
pollTime = time.Second
}
timer := time.NewTicker(pollTime)
defer timer.Stop()
for {