Skip to content

Commit 1c354be

Browse files
committed
Fix linter warnings
Signed-off-by: Anton Litvinov <[email protected]>
1 parent 11b49a5 commit 1c354be

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

services/wireguard/endpoint.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,5 @@ type ConnectionEndpoint interface {
3434
Config() (ServiceConfig, error)
3535
InterfaceName() string
3636
Stop() error
37-
3837
Diag() error
3938
}

services/wireguard/service/service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ func (mce *mockConnectionEndpoint) ConfigureRoutes(_ net.IP) error { retur
153153
func (mce *mockConnectionEndpoint) PeerStats() (wgcfg.Stats, error) {
154154
return wgcfg.Stats{LastHandshake: time.Now()}, nil
155155
}
156-
func (mce *mockConnectionEndpoint) Diag() bool {
157-
return true
156+
func (mce *mockConnectionEndpoint) Diag() error {
157+
return nil
158158
}
159159

160160
func newManagerStub(pub, out, country string) *Manager {

tequilapi/endpoints/connection-diag.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"github.com/gin-gonic/gin"
2626
"github.com/pkg/errors"
2727
"github.com/rs/zerolog/log"
28-
2928
"gorm.io/driver/postgres"
3029
"gorm.io/gorm"
3130
"gvisor.dev/gvisor/pkg/sync"
@@ -331,7 +330,7 @@ func (proposalDB) TableName() string {
331330
return "node"
332331
}
333332

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

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

0 commit comments

Comments
 (0)