Skip to content

Commit 26b7c28

Browse files
committed
store example node host identity between runs
1 parent eb03531 commit 26b7c28

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/test-service-node-host.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function main(){
3535
path,
3636
model: BouncerClientModels,
3737
serverModels: BouncerServerModels,
38-
config: new Dataparty.Config.MemoryConfig()
38+
config: new Dataparty.Config.JsonFileConfig({basePath: '/data/datparty/'})
3939
})
4040

4141
const service = new ExampleService({ name: '@dataparty/example', version: '0.0.1' })

src/service/service-host-websocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ServiceHostWebsocket{
102102

103103
let peer = new PeerParty({
104104
hostParty: this.runner.party,
105-
mode: this.runner.party.model,
105+
model: this.runner.party.factory.model,
106106
config: this.runner.party.config,
107107
comms: new Comms.WebsocketComms({
108108
host: true,

0 commit comments

Comments
 (0)