-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MF-1630 - Replace old subscriptions with a new one instead of throwin…
…g an error (#1633) * updated pubsub.subscribe() to delete and renew already subscribed objects Signed-off-by: aryan <aryangodara03@gmail.com> * fixing sync.mutex error Signed-off-by: aryan <aryangodara03@gmail.com> * made changes to pubsub_test.go to fix failing CI Signed-off-by: aryan <aryangodara03@gmail.com> * made some changes to pubsub.go Signed-off-by: aryan <aryangodara03@gmail.com> * made some changes to pubsub.go added flag var Signed-off-by: aryan <aryangodara03@gmail.com> * little code cleanup Signed-off-by: aryan <aryangodara03@gmail.com> * minor change, to make code more intuitive Signed-off-by: aryan <aryangodara03@gmail.com> * added comment, removed the ws_client file Signed-off-by: aryan <aryangodara03@gmail.com> * removed ErrAlreadySubscribed Signed-off-by: aryan <aryangodara03@gmail.com> * fixed some failing tests, will check again after semaphore result Signed-off-by: aryan <aryangodara03@gmail.com> * made similar changes for MQTT and rabbitMQ Signed-off-by: aryan <aryangodara03@gmail.com> * removed extra comment Signed-off-by: aryan <aryangodara03@gmail.com> * removed extra comment Signed-off-by: aryan <aryangodara03@gmail.com> * removed extra comment Signed-off-by: aryan <aryangodara03@gmail.com> * to fix failing CI Signed-off-by: aryan <aryangodara03@gmail.com> * checking code after adding conditions Signed-off-by: aryan <aryangodara03@gmail.com> * added ps.mu.Lock(), and changed len(s) Signed-off-by: aryan <aryangodara03@gmail.com> * added tests for failing unsubscribe Signed-off-by: aryan <aryangodara03@gmail.com> * shifted defer lock Signed-off-by: aryan <aryangodara03@gmail.com> * fixed mqtt/pubsub Signed-off-by: aryan <aryangodara03@gmail.com> * fix mqtt/pubsub typo Signed-off-by: aryan <aryangodara03@gmail.com> * add comment to improve readability Signed-off-by: aryan <aryangodara03@gmail.com> * add comment to better improve readability Signed-off-by: aryan <aryangodara03@gmail.com> * add comments for docs Signed-off-by: aryan <aryangodara03@gmail.com> * improve doc comment Signed-off-by: aryan <aryangodara03@gmail.com> * change to mqtt/pubsub Signed-off-by: aryan <aryangodara03@gmail.com> * remove unnecessary mutex lock Signed-off-by: aryan <aryangodara03@gmail.com> * change to pubsub Signed-off-by: aryan <aryangodara03@gmail.com> * add comments to improve readability Signed-off-by: aryan <aryangodara03@gmail.com> * fix typo in comment Signed-off-by: aryan <aryangodara03@gmail.com> Signed-off-by: aryan <aryangodara03@gmail.com>
- Loading branch information
1 parent
721ee54
commit d9c4704
Showing
5 changed files
with
168 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.