Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Archento committed Aug 8, 2023
1 parent 16d7276 commit 84802d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/uagents/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AgentNetwork(Enum):
AGENT_NETWORK = AgentNetwork.FETCHAI_TESTNET

AGENTVERSE_URL = "https://agentverse.ai"
ALMANAC_API_URL = "https://staging.agentverse.ai/v1/almanac/"
ALMANAC_API_URL = AGENTVERSE_URL + "/v1/almanac/"
MAILBOX_POLL_INTERVAL_SECONDS = 1.0

DEFAULT_ENVELOPE_TIMEOUT_SECONDS = 30
Expand Down
6 changes: 3 additions & 3 deletions src/uagents/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def send(
timeout: Optional[int] = DEFAULT_ENVELOPE_TIMEOUT_SECONDS,
):
schema_digest = Model.build_schema_digest(message)
await self._send_raw(
await self.send_raw(
destination,
message.json(),
schema_digest,
Expand All @@ -143,7 +143,7 @@ async def broadcast(
schema_digest = Model.build_schema_digest(message)
for address in agents:
try:
await self._send_raw(
await self.send_raw(
address,
message.json(),
schema_digest,
Expand All @@ -153,7 +153,7 @@ async def broadcast(
except Exception as e:
self.logger.error(f"Error sending message to {address}: {e}")

async def _send_raw(
async def send_raw(
self,
destination: str,
json_message: JsonStr,
Expand Down

0 comments on commit 84802d4

Please sign in to comment.