merge changes from master

This commit is contained in:
vadym 2021-09-13 15:55:21 +03:00
parent e7de29eb62
commit f0714ff52f
7 changed files with 75 additions and 74 deletions

View file

@ -224,7 +224,7 @@ func getArgs() yggArgs {
}
}
// The main function is responsible for configuring and starting Mesh.
// The main function is responsible for configuring and starting RiV-mesh.
func run(args yggArgs, ctx context.Context, done chan struct{}) {
defer close(done)
// Create a new logger that logs output to stdout.
@ -325,11 +325,11 @@ func run(args yggArgs, ctx context.Context, done chan struct{}) {
default:
}
// Setup the Mesh node itself. The node{} type includes a Core, so we
// Setup the RiV-mesh node itself. The node{} type includes a Core, so we
// don't need to create this manually.
n := node{config: cfg}
// Now start Mesh - this starts the DHT, router, switch and other core
// components needed for Mesh to operate
// Now start RiV-mesh - this starts the DHT, router, switch and other core
// components needed for RiV-mesh to operate
if err = n.core.Start(cfg, logger); err != nil {
logger.Errorln("An error occurred during startup")
panic(err)