mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
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:
parent
7766168c19
commit
3e3991cef8
1 changed files with 0 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue