You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package load
|
|
|
|
type nopShedder struct{}
|
|
|
|
func newNopShedder() Shedder {
|
|
return nopShedder{}
|
|
}
|
|
|
|
func (s nopShedder) Allow() (Promise, error) {
|
|
return nopPromise{}, nil
|
|
}
|
|
|
|
type nopPromise struct{}
|
|
|
|
func (p nopPromise) Pass() {
|
|
}
|
|
|
|
func (p nopPromise) Fail() {
|
|
}
|