rename interfaces

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

No files matched your search

+2 -2
View File
@@ -79,7 +79,7 @@ type Handler struct {
usersByEmail *userByEmail
detours *DetourConfig
sessionHistory *encoding.SessionHistory
policyManager policy.Interface
policyManager policy.Manager
}
// New creates a new VMess inbound handler.
@@ -108,7 +108,7 @@ func New(ctx context.Context, config *Config) (*Handler, error) {
if handler.inboundHandlerManager == nil {
return newError("InboundHandlerManager is not found is space.")
}
handler.policyManager = policy.PolicyFromSpace(space)
handler.policyManager = policy.FromSpace(space)
if handler.policyManager == nil {
return newError("Policy is not found in space.")
}