From 71544f266fa71676ba07088c8ca259b24a42a200 Mon Sep 17 00:00:00 2001 From: cam Date: Thu, 3 Oct 2024 11:49:28 +1300 Subject: [PATCH] Remove builds for amd64 --- connrequester/connrequester.go | 5 ---- connrequester/connrequesternomodem.go | 41 --------------------------- 2 files changed, 46 deletions(-) delete mode 100644 connrequester/connrequesternomodem.go diff --git a/connrequester/connrequester.go b/connrequester/connrequester.go index b9ac8f3..c8a45c4 100644 --- a/connrequester/connrequester.go +++ b/connrequester/connrequester.go @@ -1,6 +1,3 @@ -//go:build arm -// +build arm - package connrequester import ( @@ -167,13 +164,11 @@ func ping(interfaceName string, host string) bool { // Start will start requesting for a connection to be made. func (cr *ConnectionRequester) Start() { cr.stateChange <- true - return } // Stop will stop requesting for a connection to be made. func (cr *ConnectionRequester) Stop() { cr.stateChange <- false - return } func (cr *ConnectionRequester) requestConnections() { diff --git a/connrequester/connrequesternomodem.go b/connrequester/connrequesternomodem.go deleted file mode 100644 index d292e61..0000000 --- a/connrequester/connrequesternomodem.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build amd64 || darwin - -package connrequester - -import ( - "time" - - "github.com/TheCacophonyProject/go-utils/logging" -) - -var log = logging.NewLogger("info") - -type ConnectionRequester struct { -} - -// NewConnectionRequester will return a ConnectionRequester. -// No connection will be requested until Start is called -func NewConnectionRequester() *ConnectionRequester { - log.Printf("running amd64 version of connection requester") - return &ConnectionRequester{} -} - -// WaitUntilUpLoop will wait until a connection has been made returning an error -// if no connection is made. -// timeout is the time given to make a connection each try. -// retryAfter is the duration between attempts, it will multipy by 1.5 after -// each try with a maximum of 2 hours. -// maxRetries is how many times it will try to make a connection. If -1 it will -// try until a connection is made. -func (cr *ConnectionRequester) WaitUntilUpLoop( - timeout time.Duration, - retryAfter time.Duration, - maxRetries int) error { - return nil -} - -// Start will start requesting for a connection to be made. -func (cr *ConnectionRequester) Start() {} - -// Stop will stop requesting for a connection to be made. -func (cr *ConnectionRequester) Stop() {}