Try this
Peter Bourgon
8 years ago
41 | 41 | } |
42 | 42 | thru := m.thru |
43 | 43 | |
44 | // https://github.com/afex/hystrix-go/issues/41 | |
45 | time.Sleep(time.Millisecond) | |
44 | // Adding the sleep due to https://github.com/afex/hystrix-go/issues/41 | |
45 | // Increasing the sleep due to https://github.com/go-kit/kit/issues/169 | |
46 | time.Sleep(5 * time.Millisecond) | |
46 | 47 | |
47 | 48 | // But the rest should be blocked by an open circuit. |
48 | 49 | for i := 0; i < 10; i++ { |