diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-02 21:52:50 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-09-02 22:25:05 +0900 |
commit | ac34370d4a7850265e719abb9ac5155b2f1dd523 (patch) | |
tree | 07a3a45f59c9d6d8727d4f31b9f95e8a883e862d /server/peer.go | |
parent | 3313e8f8d63e0b502d6324d4d900f32776e11130 (diff) |
*: another s/distribute/in
distribute-policy is deprecated name.
We chose to use the name in-policy.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/peer.go b/server/peer.go index fef1aa07..67e2c437 100644 --- a/server/peer.go +++ b/server/peer.go @@ -344,7 +344,7 @@ func (peer *Peer) ToApiStruct() *api.Peer { } func (peer *Peer) setPolicy(policyMap map[string]*policy.Policy) { - // configure distribute policy + // configure in-policy policyConf := peer.conf.ApplyPolicy inPolicies := make([]*policy.Policy, 0) for _, policyName := range policyConf.ApplyPolicyConfig.InPolicy { @@ -352,9 +352,9 @@ func (peer *Peer) setPolicy(policyMap map[string]*policy.Policy) { "Topic": "Peer", "Key": peer.conf.NeighborConfig.NeighborAddress, "PolicyName": policyName, - }).Info("distribute policy installed") + }).Info("in-policy installed") if pol, ok := policyMap[policyName]; ok { - log.Debug("distribute policy : ", pol) + log.Debug("in policy : ", pol) inPolicies = append(inPolicies, pol) } } |