From b806026990d6f44c7bddf6701c50690bf0d51757 Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen <1937689+yan12125@users.noreply.github.com> Date: Fri, 28 Jul 2023 18:08:50 +0800 Subject: [PATCH] lib/connections: Fix building with `-tags noquic` (#9009) --- lib/connections/quic_unsupported.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/connections/quic_unsupported.go b/lib/connections/quic_unsupported.go index f293a6bc0..5dc555c29 100644 --- a/lib/connections/quic_unsupported.go +++ b/lib/connections/quic_unsupported.go @@ -9,6 +9,10 @@ package connections +import ( + "fmt" +) + var errNotInBuild = fmt.Errorf("%w: disabled at build time", errUnsupported) func init() {