Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved InternetConnection.Monitor stability #252

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

martinmitrevski
Copy link
Collaborator

🎯 Goal

Same fix as in the chat client: https://github.com/GetStream/stream-chat-swift/pull/2923/files.

📝 Summary

Provide bullet points with the most important changes in the codebase.

🛠 Implementation

Provide a detailed description of the implementation and explain your decisions if you find them relevant.

🎨 Showcase

Add relevant screenshots and/or videos/gifs to easily see what this PR changes, if applicable.

Before After
img img

🧪 Manual Testing Notes

Explain how this change can be tested manually, if applicable.

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change follows zero ⚠️ policy (required)
  • This change should receive manual QA
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (Docusaurus, tutorial, CMS)

🎁 Meme

Provide a funny gif or image that relates to your work on this pull request. (Optional)

@martinmitrevski martinmitrevski requested a review from a team as a code owner December 19, 2023 13:19
Copy link

1 Warning
⚠️ Please be sure to complete the Contributor Checklist in the Pull Request description

Generated by 🚫 Danger

Copy link

sonarcloud bot commented Dec 20, 2023

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

4 New issues
0 Security Hotspots
67.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -168,7 +169,7 @@ extension InternetConnection {
guard monitor == nil else { return }

monitor = createMonitor()
monitor?.start(queue: .global())
monitor?.start(queue: queue)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it make more sense to use a global queue with a qos of .background or .utility?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would prefer to keep it like this, since this was already tested on the chat monitor on older iOS 14/15 versions.

@martinmitrevski martinmitrevski merged commit b12b6b3 into main Dec 22, 2023
9 of 12 checks passed
@martinmitrevski martinmitrevski deleted the connection-monitor-fix branch December 22, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants