diff --git a/consumer.go b/consumer.go index 390002a6..f2e4e609 100644 --- a/consumer.go +++ b/consumer.go @@ -266,19 +266,8 @@ func (r *Consumer) getLogLevel() LogLevel { // of the following interfaces that modify the behavior // of the `Consumer`: // -// DiscoveryFilter -// -func (r *Consumer) SetBehaviorDelegate(cb interface{}) { - matched := false - - if _, ok := cb.(DiscoveryFilter); ok { - matched = true - } - - if !matched { - panic("behavior delegate does not have any recognized methods") - } - +// DiscoveryFilter +func (r *Consumer) SetBehaviorDelegate(cb DiscoveryFilter) { r.behaviorDelegate = cb }