Closed CFreeAetna closed 7 years ago
Thanks for reaching out about this @CFreeAtEbsco. This is definitely a bug in the library.
The library should not prevent you from setting a master fallback when using the library as a slave/master system. The way you originally used it should be the intended way to use it.
I have a proposed fix here: https://github.com/awolden/brakes/compare/fallback-fix
I will be fixing any broken tests, PRing it into master, and releasing a bugfix later today. This change will allow you set a master fallback that all slaves will use, or you can set slave specific fallbacks.
Thanks again for raising this issue.
-Alex
I'm using the following code:
I get the following error:
Following the trail, I get to here and here. This suggests to me that the constructor requires a function and a settings object, but the examples only show a setting object being passed in:
const greetingBrake = new Brakes(() => {}, breakerOpts);
seems to work, but I'm not sure that's how I'm supposed to be using the library.Any thoughts? Suggestions?