refactor to reduce number of types of message in message queue simplifying the subscribers and publishers

This commit is contained in:
Matthew R Kasun
2022-01-21 05:19:17 -05:00
parent d4399d1321
commit 2310977391
9 changed files with 215 additions and 256 deletions

View File

@@ -18,7 +18,7 @@ func Join(cfg config.ClientConfig, privateKey string) error {
var err error
err = functions.JoinNetwork(cfg, privateKey)
if err != nil && !cfg.DebugJoin {
if err != nil && !cfg.DebugOn {
if !strings.Contains(err.Error(), "ALREADY_INSTALLED") {
ncutils.PrintLog("error installing: "+err.Error(), 1)
err = functions.LeaveNetwork(cfg.Network)