Skip to content

Improve reconnection logic#2442

Merged
basfroman merged 5 commits intostagingfrom
fix/roman/reconnection
Nov 20, 2024
Merged

Improve reconnection logic#2442
basfroman merged 5 commits intostagingfrom
fix/roman/reconnection

Conversation

@basfroman
Copy link
Collaborator

No description provided.

@basfroman basfroman requested a review from a team November 19, 2024 21:51
@basfroman basfroman self-assigned this Nov 19, 2024
@basfroman basfroman added bug Something isn't working bittensor labels Nov 19, 2024
@thewhaleking thewhaleking changed the title fix reconnection Improve reconnection logic Nov 19, 2024
ibraheem-abe
ibraheem-abe previously approved these changes Nov 19, 2024
Copy link
Contributor

@ibraheem-abe ibraheem-abe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few suggestions, overall lgtm

@thewhaleking thewhaleking force-pushed the fix/roman/reconnection branch from 9ac7d6c to c3468ab Compare November 20, 2024 20:28
Comment on lines +186 to +189
old_level = logging.get_level()
logging.set_info()
logging.success("Connection successfully restored!")
logging.setLevel(old_level)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we need this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, after #2446 we don't need this logic.
after we merge 2446 I gonna apply btlogging.console everywhere we need it (like in this case).

@basfroman basfroman merged commit bcc7dc2 into staging Nov 20, 2024
@basfroman basfroman deleted the fix/roman/reconnection branch November 20, 2024 21:54
@ibraheem-abe ibraheem-abe mentioned this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bittensor bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants