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 e198aaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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
3 changes: 1 addition & 2 deletions tequilapi/endpoints/connection-diag.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/gin-gonic/gin"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"

"gorm.io/driver/postgres"
"gorm.io/gorm"
"gvisor.dev/gvisor/pkg/sync"
Expand Down Expand Up @@ -331,7 +330,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 e198aaa

Please sign in to comment.