export error
This commit is contained in:
@@ -9,7 +9,7 @@ var (
|
|||||||
ErrNoAvailableNodes = errors.New("could not find any available nodes")
|
ErrNoAvailableNodes = errors.New("could not find any available nodes")
|
||||||
ErrIncorrectRTCNode = errors.New("current node isn't the RTC node for the room")
|
ErrIncorrectRTCNode = errors.New("current node isn't the RTC node for the room")
|
||||||
ErrNodeNotFound = errors.New("could not locate the node")
|
ErrNodeNotFound = errors.New("could not locate the node")
|
||||||
errInvalidRouterMessage = errors.New("invalid router message")
|
ErrInvalidRouterMessage = errors.New("invalid router message")
|
||||||
ErrChannelClosed = errors.New("channel closed")
|
ErrChannelClosed = errors.New("channel closed")
|
||||||
ErrChannelFull = errors.New("channel is full")
|
ErrChannelFull = errors.New("channel is full")
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ func publishRTCMessage(rc *redis.Client, nodeId string, participantKey string, m
|
|||||||
rm = o
|
rm = o
|
||||||
rm.ParticipantKey = participantKey
|
rm.ParticipantKey = participantKey
|
||||||
default:
|
default:
|
||||||
return errInvalidRouterMessage
|
return ErrInvalidRouterMessage
|
||||||
}
|
}
|
||||||
data, err := proto.Marshal(rm)
|
data, err := proto.Marshal(rm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -80,7 +80,7 @@ func publishSignalMessage(rc *redis.Client, nodeId string, connectionId string,
|
|||||||
EndSession: o,
|
EndSession: o,
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return errInvalidRouterMessage
|
return ErrInvalidRouterMessage
|
||||||
}
|
}
|
||||||
data, err := proto.Marshal(rm)
|
data, err := proto.Marshal(rm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user