-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[node-split] Improve separation between server and client mode #6521
base: node-split-poc
Are you sure you want to change the base?
Conversation
... which are required by systest
@@ -390,7 +390,8 @@ func (mgr *PostSetupManager) commitmentAtx(ctx context.Context, dataDir string, | |||
} | |||
|
|||
// if this node has not published an ATX select the best ATX with `findCommitmentAtx` | |||
return mgr.findCommitmentAtx(ctx) | |||
// TODO: replace with highestATX api call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note for later: the node-service already has an endpoint to query a positioning ATX. This can be used for the commitment ATX (it would be the same ATX).
@@ -1526,20 +1560,30 @@ func (app *App) listenToUpdates(ctx context.Context) { | |||
} | |||
|
|||
func (app *App) startServices(ctx context.Context) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about having:
func (app *App) startNodeServices(ctx context.Context) error {} // for node-service
func (app *App) startSmeshingServices(ctx context.Context) error {} // for smesher-service
Then don't check against nil
inside. The code would crash if a service expected to be started in a given configuration weren't configured instead of silently not being started at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the plan for future non-PoC version. Moreover the plan is to have separate entry points/binaries for bootstrap, normal mode, server mode, client mode.
660b15c
to
c758264
Compare
tryBuild failed: |
c758264
to
c1615a0
Compare
c7fb9b3
to
0b54bcd
Compare
Extracted from #6506 and repased on top of current node-split-poc branch.