cep21 / circuit

An efficient and feature complete Hystrix like Go implementation of the circuit breaker pattern.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example config error

daliny opened this issue · comments

commented

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?

Hi,

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