formatting
This commit is contained in:
parent
a5fb49475b
commit
7b590ee77e
11
src/node.ts
11
src/node.ts
|
@ -6,7 +6,6 @@ import {Peers} from './peers';
|
||||||
import {PubSub} from './pub-sub';
|
import {PubSub} from './pub-sub';
|
||||||
import {RequestReply} from './request-reply';
|
import {RequestReply} from './request-reply';
|
||||||
import {PeerAddress} from './types';
|
import {PeerAddress} from './types';
|
||||||
import {Collection} from './collection';
|
|
||||||
const debug = Debug('rhizome-node');
|
const debug = Debug('rhizome-node');
|
||||||
|
|
||||||
export type RhizomeNodeConfig = {
|
export type RhizomeNodeConfig = {
|
||||||
|
@ -52,8 +51,14 @@ export class RhizomeNode {
|
||||||
...config
|
...config
|
||||||
};
|
};
|
||||||
debug('config', this.config);
|
debug('config', this.config);
|
||||||
this.myRequestAddr = new PeerAddress(this.config.requestBindHost, this.config.requestBindPort);
|
this.myRequestAddr = new PeerAddress(
|
||||||
this.myPublishAddr = new PeerAddress(this.config.publishBindHost, this.config.publishBindPort);
|
this.config.requestBindHost,
|
||||||
|
this.config.requestBindPort
|
||||||
|
);
|
||||||
|
this.myPublishAddr = new PeerAddress(
|
||||||
|
this.config.publishBindHost,
|
||||||
|
this.config.publishBindPort
|
||||||
|
);
|
||||||
this.pubSub = new PubSub(this);
|
this.pubSub = new PubSub(this);
|
||||||
this.requestReply = new RequestReply(this);
|
this.requestReply = new RequestReply(this);
|
||||||
this.httpApi = new HttpApi(this);
|
this.httpApi = new HttpApi(this);
|
||||||
|
|
Loading…
Reference in New Issue