Browse Source

Add relax capability set type

Shelikhoo 3 years ago
parent
commit
3b142ae319
1 changed files with 2 additions and 3 deletions
  1. 2 3
      common/environment/base.go

+ 2 - 3
common/environment/base.go

@@ -2,7 +2,6 @@ package environment
 
 import (
 	"github.com/v2fly/v2ray-core/v5/common/environment/filesystemcap"
-	"github.com/v2fly/v2ray-core/v5/common/log"
 	"github.com/v2fly/v2ray-core/v5/features/extension/storage"
 	"github.com/v2fly/v2ray-core/v5/transport/internet"
 	"github.com/v2fly/v2ray-core/v5/transport/internet/tagged"
@@ -28,11 +27,11 @@ type InstanceNetworkCapabilitySet interface {
 }
 
 type FeaturesLookupCapabilitySet interface {
-	RequireFeatures(callback interface{}) error
+	RequireFeatures() interface{}
 }
 
 type LogCapabilitySet interface {
-	RecordLog(msg log.Message)
+	RecordLog() interface{}
 }
 
 type FileSystemCapabilitySet interface {