Skip to content

Commit

Permalink
fix go linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Mar 1, 2024
1 parent 6d1beb1 commit 5f8753e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/tools/heal/liveness_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ import (
"github.com/networkservicemesh/api/pkg/api/networkservice"
"github.com/networkservicemesh/govpp/binapi/ip_types"
"github.com/networkservicemesh/govpp/binapi/ping"
"github.com/networkservicemesh/sdk-vpp/pkg/tools/ifindex"
"github.com/networkservicemesh/sdk/pkg/tools/log"
"github.com/pkg/errors"
"go.fd.io/govpp/api"

"github.com/networkservicemesh/sdk-vpp/pkg/tools/ifindex"
)

const (
Expand Down Expand Up @@ -72,15 +73,15 @@ func doPing(

defer func() { watcher.Close() }()

ifindex, ok := ifindex.Load(deadlineCtx, true)
index, ok := ifindex.Load(deadlineCtx, true)
if !ok {
logger.Errorf("failed to load ifindex")
responseCh <- true
return
}
if _, err := ping.NewServiceClient(vppConn).WantPingFinishedEvents(deadlineCtx, &ping.WantPingFinishedEvents{
Address: dstIP,
SwIfIndex: ifindex,
SwIfIndex: index,
Interval: interval,
Repeat: repeat,
}); err != nil {
Expand Down

0 comments on commit 5f8753e

Please sign in to comment.