Skip to content
Snippets Groups Projects
Commit 6f751a67 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

Merge branch 'fix-bindings-2020jan8' into 'release'

remove interface from bindings

See merge request !311
parents 724d3fc1 f074bf48
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
......@@ -60,7 +60,9 @@ 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{})
// This does not include the generic interfaces seen in the go implementation
// Those are used internally on the backend and cause errors if we try to port them
Hear(msg Message, isHeardElsewhere bool)
}
// Translate a bindings listener to a switchboard listener
......@@ -72,7 +74,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment