diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-02-28 10:37:00 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-02-28 10:37:00 +0100 |
| commit | 15cb268440b54bcbdcae9d64e1d5d083e99d74e7 (patch) | |
| tree | 6450b9a01de01d8c85e8e2a25c525358b121b959 /internal/failover/failover.go | |
| parent | 1557593401acaca1bac696195794103fcda07538 (diff) | |
Log: Use a global logger instance
Diffstat (limited to 'internal/failover/failover.go')
| -rw-r--r-- | internal/failover/failover.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/failover/failover.go b/internal/failover/failover.go index 1c4c32e..97b1da1 100644 --- a/internal/failover/failover.go +++ b/internal/failover/failover.go @@ -2,8 +2,6 @@ package failover import ( "time" - - "github.com/eduvpn/eduvpn-common/internal/log" ) const ( @@ -17,6 +15,6 @@ const ( // New creates a failover monitor for the gateway and the rx bytes function reader // This is a simple wrapper over `NewDroppedMonitor` to create one with the default settings // If this function returns True, the connection is dropped. False means it has exited and we don't know for sure if it's dropped or not -func New(readRxBytes func() (int64, error), logger log.FileLogger) *DroppedConMon { - return NewDroppedMonitor(pInterval, pDropped, readRxBytes, logger) +func New(readRxBytes func() (int64, error)) *DroppedConMon { + return NewDroppedMonitor(pInterval, pDropped, readRxBytes) } |
