Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

#287 Flush now returns promises correctly #294

Merged
merged 3 commits into from Nov 10, 2021

Conversation

Dahaden
Copy link
Contributor

@Dahaden Dahaden commented Sep 3, 2021

Noticed pify was causing a few issues as it conflicted with the promises returned by the flush function

This change might even be worthy of a major version as before this, it was not expected for the client to reject promises returned by client.flush.

… callback would have gotten. Removed pify from devDependencies
@pbassut
Copy link
Contributor

pbassut commented Oct 1, 2021

i'm thinking if tests are necessary given this function returns something totally different now.

Copy link
Contributor

@pbassut pbassut left a comment

Choose a reason for hiding this comment

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

Looks good for now. Let's discuss if we need to add tests later.

@nd4p90x nd4p90x requested a review from pooyaj November 4, 2021 14:04
@pooyaj pooyaj merged commit 70f24fe into segmentio:master Nov 10, 2021
analytics-node automation moved this from Needs Review to Done Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Promise returned by flush never rejects (and possible tests that do not work properly)
4 participants