Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Litvinov <[email protected]>
  • Loading branch information
Zensey committed Jul 17, 2024
1 parent adb2bff commit 4478b3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion services/wireguard/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ type ConnectionEndpoint interface {
Config() (ServiceConfig, error)
InterfaceName() string
Stop() error

Diag() error
}
4 changes: 2 additions & 2 deletions services/wireguard/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ func (mce *mockConnectionEndpoint) ConfigureRoutes(_ net.IP) error { retur
func (mce *mockConnectionEndpoint) PeerStats() (wgcfg.Stats, error) {
return wgcfg.Stats{LastHandshake: time.Now()}, nil
}
func (mce *mockConnectionEndpoint) Diag() bool {
return true
func (mce *mockConnectionEndpoint) Diag() error {
return nil
}

func newManagerStub(pub, out, country string) *Manager {
Expand Down
2 changes: 1 addition & 1 deletion tequilapi/endpoints/connection-diag.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (proposalDB) TableName() string {
return "node"
}

// DiagBatch is used to start a given providers check (batch mode)
// DiagBatch2 is used to start a check of providers from a given country or all countries
func (ce *ConnectionDiagEndpoint) DiagBatch2(c *gin.Context) {

hermes, err := ce.addressProvider.GetActiveHermes(config.GetInt64(config.FlagChainID))
Expand Down

0 comments on commit 4478b3c

Please sign in to comment.