formatting

This commit is contained in:
Ladd Hoffman 2024-12-25 16:15:38 -06:00
parent a5fb49475b
commit 7b590ee77e
1 changed files with 8 additions and 3 deletions

View File

@ -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);