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

Fix async pipeline control function defs #13

Closed
HarshBalyan opened this issue Feb 24, 2020 · 0 comments
Closed

Fix async pipeline control function defs #13

HarshBalyan opened this issue Feb 24, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@HarshBalyan
Copy link
Member

The asynchronous calls for pause/resume fail with

iex(1)> Flume.pause(:default_pipeline, async: true)
** (FunctionClauseError) no function clause matching in Flume.Pipeline.Event.Producer.pause/3

    The following arguments were given to Flume.Pipeline.Event.Producer.pause/3:

        # 1
        "default_pipeline"

        # 2
        true

        # 3
        5000

    Attempted function clauses (showing 1 out of 1):

        def pause(pipeline_name, false = _async, timeout)

    (flume) lib/flume/pipeline/event/producer.ex:29: Flume.Pipeline.Event.Producer.pause/3

The function definitions at

def pause(pipeline_name, true = _async) do

and
def resume(pipeline_name, true = _async) do

need to be fixed.

@HarshBalyan HarshBalyan added the bug Something isn't working label Feb 24, 2020
@HarshBalyan HarshBalyan self-assigned this Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant