Skip to content

Commit

Permalink
Fix connected_url to return ParseResult
Browse files Browse the repository at this point in the history
  • Loading branch information
nosammai committed Mar 5, 2022
1 parent d25fab3 commit 77638df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nats/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,9 +985,9 @@ async def flush(self, timeout: int = 10) -> None:
raise errors.TimeoutError

@property
def connected_url(self) -> Optional[str]:
def connected_url(self) -> Optional[ParseResult]:
if self._current_server and self.is_connected:
return str(self._current_server.uri)
return self._current_server.uri
return None

@property
Expand Down

0 comments on commit 77638df

Please sign in to comment.