aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hsuan Yen <1937689+yan12125@users.noreply.github.com>2023-07-28 18:08:50 +0800
committerGitHub <noreply@github.com>2023-07-28 10:08:50 +0000
commitb806026990d6f44c7bddf6701c50690bf0d51757 (patch)
treefbf63124ec5ff02167f709bc5d73500ba1267d30
parent341b79814ec9eb9740705e935f653c358832ea67 (diff)
downloadsyncthing-b806026990d6f44c7bddf6701c50690bf0d51757.tar.gz
syncthing-b806026990d6f44c7bddf6701c50690bf0d51757.zip
lib/connections: Fix building with `-tags noquic` (#9009)
-rw-r--r--lib/connections/quic_unsupported.go4
1 files changed, 4 insertions, 0 deletions
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() {