bus/client.go
Method client.Call
has 74 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *client) Call(cancel <-chan struct{}, serviceID, objectID, actionID uint32,
payload []byte) ([]byte, error) {
// Do nothing if cancel is already closed.
if cancel != nil {
Method client.Call
has 11 return statements (exceeds 4 allowed). Open
Open
func (c *client) Call(cancel <-chan struct{}, serviceID, objectID, actionID uint32,
payload []byte) ([]byte, error) {
// Do nothing if cancel is already closed.
if cancel != nil {
Method client.Subscribe
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *client) Subscribe(serviceID, objectID, actionID uint32) (
cancel func(), events chan []byte, err error) {
abort := make(chan struct{})
events = make(chan []byte)