From 784db588606594cfdeec6951e804069a6d4f4440 Mon Sep 17 00:00:00 2001 From: birros Date: Wed, 3 Aug 2022 16:44:22 +0200 Subject: [PATCH] build(connmgr): add nowatchdog go build tag Add the capacity to disable watchdog even if cgo is present. --- p2p/net/connmgr/watchdog_cgo.go | 4 ++-- p2p/net/connmgr/watchdog_no_cgo.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/p2p/net/connmgr/watchdog_cgo.go b/p2p/net/connmgr/watchdog_cgo.go index b048111f36..526740c530 100644 --- a/p2p/net/connmgr/watchdog_cgo.go +++ b/p2p/net/connmgr/watchdog_cgo.go @@ -1,5 +1,5 @@ -//go:build cgo -// +build cgo +//go:build cgo && !nowatchdog +// +build cgo,!nowatchdog package connmgr diff --git a/p2p/net/connmgr/watchdog_no_cgo.go b/p2p/net/connmgr/watchdog_no_cgo.go index fb83c286de..2336c3d5c1 100644 --- a/p2p/net/connmgr/watchdog_no_cgo.go +++ b/p2p/net/connmgr/watchdog_no_cgo.go @@ -1,5 +1,5 @@ -//go:build !cgo -// +build !cgo +//go:build !cgo || nowatchdog +// +build !cgo nowatchdog package connmgr