Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Mar 18, 2024
1 parent de6f5ba commit 1000f6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/router/strategy_random.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ package router
import (
"context"

"google.golang.org/protobuf/runtime/protoiface"

core "github.com/v2fly/v2ray-core/v5"
"github.com/v2fly/v2ray-core/v5/app/observatory"
"github.com/v2fly/v2ray-core/v5/common"
"github.com/v2fly/v2ray-core/v5/common/dice"
"github.com/v2fly/v2ray-core/v5/features"
"github.com/v2fly/v2ray-core/v5/features/extension"
"google.golang.org/protobuf/proto"

Check failure on line 12 in app/router/strategy_random.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed with -local github.com/v2fly/v2ray-core (goimports)
)

// RandomStrategy represents a random balancing strategy
Expand Down Expand Up @@ -47,7 +46,7 @@ func (s *RandomStrategy) PickOutbound(candidates []string) string {
})
}
if s.observatory != nil {
var observeReport protoiface.MessageV1
var observeReport proto.Message
var err error
if s.settings.ObserverTag == "" {
observeReport, err = s.observatory.GetObservation(s.ctx)
Expand Down

0 comments on commit 1000f6e

Please sign in to comment.