From 9606bc4ce88d768b33e02677d61b1379073730d6 Mon Sep 17 00:00:00 2001 From: Benjamin Wenger <ben@elixxir.ioo> Date: Wed, 22 Sep 2021 13:03:54 -0700 Subject: [PATCH] minor fixes --- cmd/root.go | 4 ++++ network/gateway/sender.go | 9 +-------- network/roundTracking.go | 5 +++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index bb3796df1..30439c761 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -696,8 +696,12 @@ func askToCreateChannel(recipientID *id.ID) bool { } } +// this the the nodepad used for round logging. var roundsNotepad *jww.Notepad +// initRoundLog creates the log output for round tracking. In debug mode, +// the client will keep track of all rounds it evaluates if it has +// messages in, and then will dump them to this log on client exit func initRoundLog(logPath string) { parts := strings.Split(logPath,".") path := parts[0] + "-rounds." + parts[1] diff --git a/network/gateway/sender.go b/network/gateway/sender.go index 9abb88ac3..1ae30ccea 100644 --- a/network/gateway/sender.go +++ b/network/gateway/sender.go @@ -168,11 +168,4 @@ func (s *Sender) SendToPreferred(targets []*id.ID, } return nil, errors.Errorf("Unable to send to any preferred") -} - - -func (s *Sender)sendHelper(target []*id.ID, - sendFunc func(host *connect.Host, target *id.ID) (interface{}, error), - stop *stoppable.Single){ - -} +} \ No newline at end of file diff --git a/network/roundTracking.go b/network/roundTracking.go index 650747e1c..cb56aa8d8 100644 --- a/network/roundTracking.go +++ b/network/roundTracking.go @@ -4,6 +4,11 @@ // All rights reserved. / //////////////////////////////////////////////////////////////////////////////// +// this is an in memory track of rounds that have been processed in this run of the +// xxdk. It only is enabled when loglevel is debug or higher. It will accumulate all +// rounds and then dump on exist. Is only enabled when run though the command line +// interface unless enabled explicitly in code. + package network import ( -- GitLab