Skip to content
Snippets Groups Projects
Commit 788886cb authored by Jonah Husson's avatar Jonah Husson
Browse files

remove interface from bindings

parent 724d3fc1
No related branches found
No related tags found
No related merge requests found
...@@ -402,7 +402,7 @@ func TestLoginLogout(t *testing.T) { ...@@ -402,7 +402,7 @@ func TestLoginLogout(t *testing.T) {
type MockListener bool type MockListener bool
func (m *MockListener) Hear(msg Message, isHeardElsewhere bool, i ...interface{}) { func (m *MockListener) Hear(msg Message, isHeardElsewhere bool) {
*m = true *m = true
} }
......
...@@ -60,7 +60,7 @@ type storageProxy struct { ...@@ -60,7 +60,7 @@ type storageProxy struct {
// gets a message of the type that the registerer specified at registration // gets a message of the type that the registerer specified at registration
// time. // time.
type Listener interface { type Listener interface {
Hear(msg Message, isHeardElsewhere bool, i ...interface{}) Hear(msg Message, isHeardElsewhere bool)
} }
// Translate a bindings listener to a switchboard listener // Translate a bindings listener to a switchboard listener
...@@ -72,7 +72,7 @@ type listenerProxy struct { ...@@ -72,7 +72,7 @@ type listenerProxy struct {
func (lp *listenerProxy) Hear(msg switchboard.Item, isHeardElsewhere bool, i ...interface{}) { func (lp *listenerProxy) Hear(msg switchboard.Item, isHeardElsewhere bool, i ...interface{}) {
msgInterface := &parse.BindingsMessageProxy{Proxy: msg.(*parse.Message)} 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 // Interface used to receive a callback on searching for a user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment