Skip to content

Commit cbd31a9

Browse files
author
Pk-web6936
authored
Update libv2ray_main.go
1 parent 3ea98ee commit cbd31a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libv2ray_main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const (
3535

3636
// CoreController represents a controller for managing Xray core instance lifecycle
3737
type CoreController struct {
38-
3938
CallbackHandler CoreCallbackHandler
4039
statsManager corestats.Manager
4140
coreMutex sync.Mutex
@@ -45,7 +44,6 @@ type CoreController struct {
4544

4645
// CoreCallbackHandler defines interface for receiving callbacks and notifications from the core service
4746
type CoreCallbackHandler interface {
48-
4947
Startup() int
5048
Shutdown() int
5149
OnEmitStatus(int, string) int
@@ -168,6 +166,7 @@ func (x *CoreController) QueryStats(tag string, direct string) int64 {
168166
func (x *CoreController) MeasureDelay(url string) (int64, error) {
169167
ctx, cancel := context.WithTimeout(context.Background(), 12*time.Second)
170168
defer cancel()
169+
171170
return measureInstDelay(ctx, x.coreInstance, url)
172171
}
173172

@@ -199,7 +198,6 @@ func MeasureOutboundDelay(ConfigureFileContent string, url string) (int64, error
199198
return -1, fmt.Errorf("startup failed: %w", err)
200199
}
201200
defer inst.Close()
202-
203201
return measureInstDelay(context.Background(), inst, url)
204202
}
205203

0 commit comments

Comments
 (0)