fix config.go for commander/soldier

add back two functions to fix the build errors

Signed-off-by: Leo Chen <leo@harmony.one>
pull/69/head
Leo Chen 6 years ago
parent 7a57510102
commit 591846068d
  1. 13
      client/config/config.go

@ -97,3 +97,16 @@ func (config *Config) ReadConfigFile(filename string) error {
config.config = result
return nil
}
func (config *Config) GetMyConfigEntry(ip string, port string) *ConfigEntry {
for _, entry := range config.config {
if entry.IP == ip && entry.Port == port {
return &entry
}
}
return nil
}
func (config *Config) GetConfigEntries() []ConfigEntry {
return config.config
}

Loading…
Cancel
Save