1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-27 16:09:08 -04:00

rename interfaces

This commit is contained in:
Darien Raymond
2017-11-27 22:18:39 +01:00
parent 3214a5078c
commit f90ec9fff0
11 changed files with 21 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ import (
type Handler struct {
serverList *protocol.ServerList
serverPicker protocol.ServerPicker
policyManager policy.Interface
policyManager policy.Manager
}
func New(ctx context.Context, config *Config) (*Handler, error) {
@@ -45,7 +45,7 @@ func New(ctx context.Context, config *Config) (*Handler, error) {
}
space.OnInitialize(func() error {
pm := policy.PolicyFromSpace(space)
pm := policy.FromSpace(space)
if pm == nil {
return newError("Policy is not found in space.")
}