Skip to content

Commit 028fd8e

Browse files
committed
minor code cleanup
1 parent 916c3f6 commit 028fd8e

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/service/iservice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ module.exports = class IService {
141141
fs.writeFileSync(schemaOutput, JSON.stringify({
142142
package: this.compiled.package,
143143
...this.compiled.schemas
144-
}))
144+
}, null, 2))
145145
}
146146

147147
return this.compiled

src/service/service-runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class ServiceRunner {
152152
endpointHandler(endpoint){
153153
return async (event)=>{
154154

155-
debug('event',event.method, event.pathname)
155+
debug('event',event.method, event.pathname, event.request.ip, event.request.ips)
156156

157157

158158
const context = new EndpointContext({

src/venue/venue-host.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function main(){
2121

2222
const service = new VenueService({ name: '@dataparty/venue', version: '0.0.1' })
2323

24-
const build = await service.compile(Path.join(__dirname,'../dataparty'), false)
24+
const build = await service.compile(Path.join(__dirname,'../../dataparty'), true)
2525

2626
debug('built')
2727

test/test-peer-party.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ async function main(){
4040
await peer2.start()
4141

4242
peer1.comms.socket.on('signal', data=>{
43-
debug('p1 >> p2')
43+
debug('p1 >> p2', data)
4444
peer2.comms.socket.signal(data)
4545
})
4646

4747
peer2.comms.socket.on('signal', data=>{
48-
debug('p1 << p2')
48+
debug('p1 << p2', data)
4949
peer1.comms.socket.signal(data)
5050
})
5151

test/test-service-host.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function main(){
3737

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

40-
const build = await service.compile(Path.join(__dirname,'../dataparty'), false)
40+
const build = await service.compile(Path.join(__dirname,'../dataparty'), true)
4141

4242
debug('built')
4343

@@ -46,7 +46,7 @@ async function main(){
4646
sendFullErrors: true
4747
})
4848

49-
const host = new Dataparty.ServiceHost({runner})
49+
const host = new Dataparty.ServiceHost({runner, trust_proxy: true})
5050

5151
await party.start()
5252
await runner.start()

0 commit comments

Comments
 (0)