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

Pass in coupler directly #61

Open
SomeKittens opened this issue Feb 4, 2016 · 1 comment
Open

Pass in coupler directly #61

SomeKittens opened this issue Feb 4, 2016 · 1 comment

Comments

@SomeKittens
Copy link
Owner

instead of:

gustav.addCoupler(new GustavRedis());

just pass the coupler directly as a source:

let red = new GustavRedis();

gustav.createWorkflow('asdf')
  .source(red, 'some-channel')
  // ...

Now it's easier to work with different types couplers, and has fewer magic strings from default names.

@SomeKittens
Copy link
Owner Author

+1, I'm leaning further away from magic strings and globals hidden in Gustav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant