private void dispatchInteraction(final Peer peer, final PeerInteractionState state) {
    final Bytes id = peer.getId();
    final PeerInteractionState previous =
        inflightInteractions
            .computeIfAbsent(id, k -> new ConcurrentHashMap<>())
            .put(state.expectedType, state);
    if (previous != null) {
      previous.cancelTimers();
    }
    state.execute();
  }
Dispatches a new tracked interaction with a peer, adding it to the {@link
#inflightInteractions} map and executing the action for the first time.

<p>If a previous inflightInteractions interaction existed, we cancel any associated timers.

@param peer The peer.
@param state The state.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/internal/PeerDiscoveryController.java