mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-04-26 07:02:29 +00:00
chore: tiny refactor
This commit is contained in:
parent
50840a8067
commit
9c77a69ae3
@ -21,9 +21,8 @@ class TCP {
|
|||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
callback = callback || noop
|
callback = once(callback || noop)
|
||||||
|
|
||||||
callback = once(callback)
|
|
||||||
const cOpts = ma.toOptions()
|
const cOpts = ma.toOptions()
|
||||||
log('Connecting to %s %s', cOpts.port, cOpts.host)
|
log('Connecting to %s %s', cOpts.port, cOpts.host)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user