Skip to content

Commit ee890bb

Browse files
Ashish AggarwalAshish Aggarwal
authored andcommitted
default to haystack-agent host and port 35000
1 parent d471302 commit ee890bb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/dispatchers/remote.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export default class RemoteDispatcher implements Dispatcher {
2828

2929
constructor(agentHost: string, agentPort: number, logger = new NullLogger()) {
3030
logger.info(`Initializing the remote dispatcher, connecting at ${agentHost}:${agentPort}`);
31+
agentHost = agentHost || 'haystack-agent';
32+
agentPort = agentPort || 35000;
3133
this._client = new services.SpanAgentClient(`${agentHost}:${agentPort}`, grpc.credentials.createInsecure());
3234
this._logger = logger;
3335
}

0 commit comments

Comments
 (0)