()
| 144 | } |
| 145 | |
| 146 | func (c *Communicator) hashKey() string { |
| 147 | hash := md5.New() |
| 148 | hashKeys := []string{"locator", "enableset", "setdivision"} |
| 149 | for _, k := range hashKeys { |
| 150 | if v, ok := c.properties.Load(k); ok { |
| 151 | hash.Write([]byte(fmt.Sprintf("%v:%v", k, v))) |
| 152 | } |
| 153 | } |
| 154 | return hex.EncodeToString(hash.Sum(nil)) |
| 155 | } |