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

Mp 785 fix redis connection leak #103

Merged
merged 11 commits into from
Dec 9, 2019
Merged

Conversation

bushjames
Copy link
Contributor

No description provided.

mdebarros
mdebarros previously approved these changes Dec 6, 2019
Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

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

+1

yosheeck
yosheeck previously approved these changes Dec 6, 2019
src/lib/model/AccountsModel.js Outdated Show resolved Hide resolved
src/lib/model/OutboundTransfersModel.js Outdated Show resolved Hide resolved
src/lib/model/OutboundTransfersModel.js Show resolved Hide resolved
src/lib/model/OutboundTransfersModel.js Outdated Show resolved Hide resolved
return reject(error);
}
// stop listening for transfer fulfil messages
this.cache.unsubscribe(transferKey, subId).then(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think better to use await here to avoid deep nesting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see previous comments

src/test/__mocks__/redis.js Outdated Show resolved Hide resolved
src/test/unit/inboundApi/handlers.test.js Outdated Show resolved Hide resolved
src/test/unit/lib/cache/cache.test.js Outdated Show resolved Hide resolved
src/test/unit/lib/model/OutboundTransfersModel.test.js Outdated Show resolved Hide resolved
@bushjames bushjames dismissed stale reviews from yosheeck and mdebarros via 7045525 December 9, 2019 15:28
src/lib/cache/cache.js Outdated Show resolved Hide resolved
@bushjames bushjames requested a review from kirgene December 9, 2019 18:08
@bushjames bushjames merged commit 02ff6de into master Dec 9, 2019
@bushjames bushjames deleted the MP-785-fix-redis-connection-leak branch December 13, 2019 12:02
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.

4 participants