static RetryDelayFunction linear(final double multiplier, final long min, final long max) {
    return (prev) -> Math.min(Math.max((long) Math.ceil(prev * multiplier), min), max);
  }
A function to calculate the next retry delay based on the previous one. In the future, this could
be enhanced to take in the number of retries so far, so the function can take a decision to abort
if too many retries have been attempted.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/internal/RetryDelayFunction.java