diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-01-03 12:39:38 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-01-03 12:39:38 +0100 |
| commit | 41d0cc72044244b630d12548b046996e5006eb3e (patch) | |
| tree | 277f98a8ba35dfa7fb18017e7e36a75c21c1f7a5 /internal | |
| parent | 15a3a0b0ac8acabcdf7f9397eb53fb4c4b36a994 (diff) | |
Format: Run gofumpt
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/discovery/discovery_test.go | 3 | ||||
| -rw-r--r-- | internal/failover/monitor.go | 2 | ||||
| -rw-r--r-- | internal/log/log.go | 2 | ||||
| -rw-r--r-- | internal/oauth/token.go | 1 |
4 files changed, 3 insertions, 5 deletions
diff --git a/internal/discovery/discovery_test.go b/internal/discovery/discovery_test.go index 8d16452..9d6b914 100644 --- a/internal/discovery/discovery_test.go +++ b/internal/discovery/discovery_test.go @@ -13,7 +13,7 @@ import ( ) // setupFileServer sets up a file server with a directory -func setupFileServer(t *testing.T, directory string) (*http.Server) { +func setupFileServer(t *testing.T, directory string) *http.Server { listener, err := net.Listen("tcp", ":0") if err != nil { t.Fatalf("Failed to setup discovery file server") @@ -197,7 +197,6 @@ func TestServerByCountryCode(t *testing.T) { // TestOrgByID tests the function for getting an organization by ID func TestOrgByID(t *testing.T) { - o1 := types.DiscoveryOrganization{OrgID: "a"} d := Discovery{ organizations: types.DiscoveryOrganizations{ diff --git a/internal/failover/monitor.go b/internal/failover/monitor.go index ed532f7..a6916be 100644 --- a/internal/failover/monitor.go +++ b/internal/failover/monitor.go @@ -4,8 +4,8 @@ import ( "context" "time" - "github.com/go-errors/errors" "github.com/eduvpn/eduvpn-common/internal/log" + "github.com/go-errors/errors" ) // The DroppedConMon is a connection monitor that checks for an increase in rx bytes in certain intervals diff --git a/internal/log/log.go b/internal/log/log.go index 64d9fb8..8b559fb 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -113,7 +113,7 @@ func (logger *FileLogger) Init(lvl Level, dir string) error { // Inheritf logs an error with a message and params using the error level verbosity of the error. // The message is always prefixed with the error. -func (logger *FileLogger) Inheritf(err error, msg string, params...interface{}) { +func (logger *FileLogger) Inheritf(err error, msg string, params ...interface{}) { if err == nil { return } diff --git a/internal/oauth/token.go b/internal/oauth/token.go index 4ed8f43..c1d72f8 100644 --- a/internal/oauth/token.go +++ b/internal/oauth/token.go @@ -113,7 +113,6 @@ func (l *tokenLock) Update(r Token) { l.mu.Unlock() } - // Get gets the tokens into a public struct func (l *tokenLock) Get() Token { // TODO: Check nil? |
