Skip to content
Snippets Groups Projects
Commit 0eb5eb29 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

add some debugging

parent cb910366
Branches
Tags
No related merge requests found
......@@ -127,7 +127,9 @@ func (s *Session) GetNodeKeysFromCircuit(topology *connect.Circuit) (
// Build a list of NodeKeys from the map
keys := make([]user.NodeKeys, topology.Len())
for i := 0; i < topology.Len(); i++ {
keys[i] = nodeKeys[topology.GetNodeAtIndex(i).String()]
nid := topology.GetNodeAtIndex(i)
keys[i] = nodeKeys[nid.String()]
globals.Log.INFO.Printf("Read NodeKey: %s: %v", nid, key)
}
return keys, nil
......@@ -144,6 +146,8 @@ func (s *Session) PushNodeKey(id *id.ID, key user.NodeKeys) error {
// Set new value inside of map
nodeKeys[id.String()] = key
globals.Log.INFO.Printf("Adding NodeKey: %s: %v", id.String(), key)
// Encode the map
var nodeKeysBuffer bytes.Buffer
enc := gob.NewEncoder(&nodeKeysBuffer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment