From 788886cbb1fd9d418ddac46b96fc0764147da6fb Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Wed, 8 Jan 2020 14:41:40 -0800 Subject: [PATCH] remove interface from bindings --- bindings/client_test.go | 2 +- bindings/interfaces.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/client_test.go b/bindings/client_test.go index 5537028f6..4fbf9ba07 100644 --- a/bindings/client_test.go +++ b/bindings/client_test.go @@ -402,7 +402,7 @@ func TestLoginLogout(t *testing.T) { type MockListener bool -func (m *MockListener) Hear(msg Message, isHeardElsewhere bool, i ...interface{}) { +func (m *MockListener) Hear(msg Message, isHeardElsewhere bool) { *m = true } diff --git a/bindings/interfaces.go b/bindings/interfaces.go index 88ea9ad7f..bfc359f95 100644 --- a/bindings/interfaces.go +++ b/bindings/interfaces.go @@ -60,7 +60,7 @@ type storageProxy struct { // gets a message of the type that the registerer specified at registration // time. type Listener interface { - Hear(msg Message, isHeardElsewhere bool, i ...interface{}) + Hear(msg Message, isHeardElsewhere bool) } // Translate a bindings listener to a switchboard listener @@ -72,7 +72,7 @@ type listenerProxy struct { func (lp *listenerProxy) Hear(msg switchboard.Item, isHeardElsewhere bool, i ...interface{}) { msgInterface := &parse.BindingsMessageProxy{Proxy: msg.(*parse.Message)} - lp.proxy.Hear(msgInterface, isHeardElsewhere, i) + lp.proxy.Hear(msgInterface, isHeardElsewhere) } // Interface used to receive a callback on searching for a user -- GitLab