Legacy format: store server descriptions
This commit is contained in:
parent
f8a6e56026
commit
148d900a72
|
@ -194,6 +194,7 @@ func (source *Source) parseV1(prefix string) ([]RegisteredServer, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
name := prefix + record[0]
|
name := prefix + record[0]
|
||||||
|
description := record[2]
|
||||||
serverAddrStr := record[10]
|
serverAddrStr := record[10]
|
||||||
providerName := record[11]
|
providerName := record[11]
|
||||||
serverPkStr := record[12]
|
serverPkStr := record[12]
|
||||||
|
@ -209,7 +210,7 @@ func (source *Source) parseV1(prefix string) ([]RegisteredServer, error) {
|
||||||
return registeredServers, err
|
return registeredServers, err
|
||||||
}
|
}
|
||||||
registeredServer := RegisteredServer{
|
registeredServer := RegisteredServer{
|
||||||
name: name, stamp: stamp,
|
name: name, stamp: stamp, description: description,
|
||||||
}
|
}
|
||||||
dlog.Debugf("Registered [%s] with stamp [%s]", name, stamp.String())
|
dlog.Debugf("Registered [%s] with stamp [%s]", name, stamp.String())
|
||||||
registeredServers = append(registeredServers, registeredServer)
|
registeredServers = append(registeredServers, registeredServer)
|
||||||
|
|
Loading…
Reference in New Issue