Skip to content

Commit 8f0f80b

Browse files
committed
Don't init, just start
1 parent eb7c54f commit 8f0f80b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ const pattyOpts = {port: 8081, secret: 'someSecureString', logpath: '/logs'}
1111
const patty = require('paternity')
1212
const handleIt = require('./some-other-resource') // same as resource obj
1313
14-
await patty.init(pattyOpts)
1514
const someResource = await patty.register('some-resource')
1615
const someOtherResource = await patty.register('some-other-resource', handleIt)
17-
await patty.start()
16+
await patty.start(pattyOpts)
1817
*/
1918

2019
/* RESOURCE OBJECT

0 commit comments

Comments
 (0)