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

Subscriptions: Fix subscription.Clone Params and Pairs #1582

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

gbjk
Copy link
Collaborator

@gbjk gbjk commented Jul 17, 2024

Fixes Clone() affecting the original and not the clone for Pairs and Params.
That actually meant it would pass tests, and kinda work, but not in the way expected, and definitely not thread safe on the original parent

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@gbjk gbjk added bug review me This pull request is ready for review labels Jul 17, 2024
@gbjk gbjk self-assigned this Jul 17, 2024
Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

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

A little whoopsie that went unnoticed 🌈

@gbjk gbjk requested a review from gloriousCode July 18, 2024 01:32
Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

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

tACK!

Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

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

Nice fix! tACK.

exchanges/subscription/subscription.go Show resolved Hide resolved
Copy link
Collaborator

@thrasher- thrasher- left a comment

Choose a reason for hiding this comment

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

Nice gotcha fix + additional test coverage

@thrasher- thrasher- merged commit 4f1696f into thrasher-corp:master Jul 19, 2024
5 of 11 checks passed
@gbjk gbjk deleted the bugfix/subscription_clone branch July 19, 2024 01:04
gbjk added a commit to gbjk/gocryptotrader that referenced this pull request Aug 9, 2024
…#1582)

* Subscriptions: Fix subscription.Clone Params and Pairs

* fixup! Subscriptions: Fix subscription.Clone Params and Pairs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug review me This pull request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants