Skip to content

Commit

Permalink
Set default to playground open pool
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed May 20, 2024
1 parent 01acf74 commit 8470296
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OpenAgentsNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ export default class OpenAgentsNode {
}

public async start(poolHost?: string, poolPort?: number, poolSsl?: boolean, loopInterval?: number) {
this.poolAddress = poolHost || process.env.POOL_ADDRESS || "127.0.0.1";
this.poolPort = poolPort || parseInt(process.env.POOL_PORT || "5000");
this.poolSsl = poolSsl || process.env.POOL_SSL == "true";
this.poolAddress = poolHost || process.env.POOL_ADDRESS || "playground.openagents.com";
this.poolPort = poolPort || parseInt(process.env.POOL_PORT || "6021");
this.poolSsl = typeof poolSsl == "undefined" ? ((process.env.POOL_SSL || "true") == "true") : poolSsl;
this.loopInterval = loopInterval || 1000.0 / parseInt(process.env.NODE_TPS || "10");

this.reannounce();
Expand Down

0 comments on commit 8470296

Please sign in to comment.