circuit icon indicating copy to clipboard operation
circuit copied to clipboard

example config error

Open daliny opened this issue 6 years ago • 1 comments

at https://github.com/cep21/circuit/blob/v3.1.0/v3/example/main.go#L81

circuit.Config{} should be configured, like

circuit.Config{
General: circuit.GeneralConfig{
	OpenToClosedFactory: hystrix.CloserFactory(hystrix.ConfigureCloser{}),
	ClosedToOpenFactory: hystrix.OpenerFactory(hystrix.ConfigureOpener{}),
}

right?

daliny avatar Sep 04 '19 13:09 daliny

Hi,

That looks correct. I haven't touched the examples in a long time.

cep21 avatar Sep 04 '19 17:09 cep21