mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
remove debug code
This commit is contained in:
parent
908eb44cd4
commit
515fcb9f87
13
v2ray.go
13
v2ray.go
@ -2,8 +2,6 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
fmt "fmt"
|
|
||||||
"reflect"
|
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"v2ray.com/core/common"
|
"v2ray.com/core/common"
|
||||||
@ -101,19 +99,10 @@ func New(config *Config) (*Instance, error) {
|
|||||||
server.AddFeature(routing.DefaultRouter{})
|
server.AddFeature(routing.DefaultRouter{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add an empty instance at the end, for optional feature requirement.
|
||||||
server.AddFeature(&Instance{})
|
server.AddFeature(&Instance{})
|
||||||
|
|
||||||
if server.featureResolutions != nil {
|
if server.featureResolutions != nil {
|
||||||
fmt.Println("registered")
|
|
||||||
for _, d := range server.features {
|
|
||||||
fmt.Println(reflect.TypeOf(d.Type()))
|
|
||||||
}
|
|
||||||
for idx, r := range server.featureResolutions {
|
|
||||||
fmt.Println(idx)
|
|
||||||
for _, d := range r.deps {
|
|
||||||
fmt.Println(reflect.TypeOf(d))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil, newError("not all dependency are resolved.")
|
return nil, newError("not all dependency are resolved.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user