use EventSwitch interface; less logging

This commit is contained in:
Ethan Buchman
2016-10-10 03:22:34 -04:00
parent 479510be0e
commit 855255d73e
3 changed files with 21 additions and 15 deletions

View File

@ -68,7 +68,7 @@ func NewRPCResponse(id string, res interface{}, err string) RPCResponse {
// *wsConnection implements this interface.
type WSRPCConnection interface {
GetRemoteAddr() string
GetEventSwitch() *events.EventSwitch
GetEventSwitch() events.EventSwitch
WriteRPCResponse(resp RPCResponse)
TryWriteRPCResponse(resp RPCResponse) bool
}