diff --git a/transport.go b/transport.go index a03f99f..efebcc2 100644 --- a/transport.go +++ b/transport.go @@ -2,6 +2,7 @@ package libp2pquic import ( "context" + "errors" "fmt" "net" "sync" @@ -125,6 +126,7 @@ func (t *transport) Dial(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (tp var remotePubKey ic.PubKey select { case remotePubKey = <-keyCh: + return nil, errors.New("go-libp2p-quic-transport BUG: expected remote pub key to be set") default: }