// DefaultHandler provides the minimum implementation required for correct controller behavior.
DefaultHandler provides the minimum implementation required for correct controller behavior.
// DefaultHandler provides the minimum implementation required for correct controller behavior .
func DefaultHandler(e *scheduler.Event) (err error) {
	if e.GetType() == scheduler.Event_ERROR {
		err = fmt.Errorf("ERROR: %q", e.GetError().GetMessage())
	}
	return
}
func DefaultHandler ( e * scheduler . Event ) ( err error ) { if e . GetType ( ) == scheduler . Event_ERROR { err = fmt . Errorf ( " " , e . GetError ( ) . GetMessage ( ) ) } return }
DefaultHandler provides the minimum implementation required for correct controller behavior.
DefaultHandler provides the minimum implementation required for correct controller behavior .
// it's recommended that we abort and re-try subscribing; returning an // error here will cause the event loop to terminate and the connection // will be reset.