File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,5 @@ type ConnectionEndpoint interface {
34
34
Config () (ServiceConfig , error )
35
35
InterfaceName () string
36
36
Stop () error
37
-
38
37
Diag () error
39
38
}
Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ func (mce *mockConnectionEndpoint) ConfigureRoutes(_ net.IP) error { retur
153
153
func (mce * mockConnectionEndpoint ) PeerStats () (wgcfg.Stats , error ) {
154
154
return wgcfg.Stats {LastHandshake : time .Now ()}, nil
155
155
}
156
- func (mce * mockConnectionEndpoint ) Diag () bool {
157
- return true
156
+ func (mce * mockConnectionEndpoint ) Diag () error {
157
+ return nil
158
158
}
159
159
160
160
func newManagerStub (pub , out , country string ) * Manager {
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import (
25
25
"github.com/gin-gonic/gin"
26
26
"github.com/pkg/errors"
27
27
"github.com/rs/zerolog/log"
28
-
29
28
"gorm.io/driver/postgres"
30
29
"gorm.io/gorm"
31
30
"gvisor.dev/gvisor/pkg/sync"
@@ -331,7 +330,7 @@ func (proposalDB) TableName() string {
331
330
return "node"
332
331
}
333
332
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
335
334
func (ce * ConnectionDiagEndpoint ) DiagBatch2 (c * gin.Context ) {
336
335
337
336
hermes , err := ce .addressProvider .GetActiveHermes (config .GetInt64 (config .FlagChainID ))
You can’t perform that action at this time.
0 commit comments