1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00

remove debug code

This commit is contained in:
Darien Raymond 2018-10-21 19:35:32 +02:00
parent 908eb44cd4
commit 515fcb9f87
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -2,8 +2,6 @@ package core
import (
"context"
fmt "fmt"
"reflect"
"sync"
"v2ray.com/core/common"
@ -101,19 +99,10 @@ func New(config *Config) (*Instance, error) {
server.AddFeature(routing.DefaultRouter{})
}
// Add an empty instance at the end, for optional feature requirement.
server.AddFeature(&Instance{})
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.")
}