Skip to content
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

feat: decentralization setup #146

Merged
merged 5 commits into from
Aug 5, 2021
Merged

Conversation

jonasbovyn
Copy link
Contributor

No description provided.

Comment on lines 32 to 33


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Contributor

@woutermont woutermont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please stick to the convention: make the peersStorageRoute and storageStorageRoute IDs start with a capital letter.

Comment on lines 30 to +36
const server: NodeHttpServer = await manager.instantiate('urn:semcom-node:default:NodeHttpServer', { variables });
const peerSyncScheduler: Scheduler = await manager.instantiate('urn:semcom-node:default:PeerSyncScheduler', { variables });
const storageSyncScheduler: Scheduler = await manager.instantiate('urn:semcom-node:default:StorageSyncScheduler', { variables });

server.start();
peerSyncScheduler.start();
storageSyncScheduler.start();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... does this work? I.e. are the schedulers the same objects used for the init of the server, not new ones?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when I tested it, the server didn't instantiate the 2 schedulers at all, because they aren't needed I think? The only thing they need to share is memoryStorage and apparently that happens because it synchronizes when I launch 2 nodes

@woutermont woutermont merged commit 73c2d2f into develop Aug 5, 2021
@woutermont woutermont deleted the feat/decentralization-config branch August 5, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants