From 1e10d440c89072ac864bd976e73923e0f5038b36 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Mon, 30 Aug 2021 17:03:39 -0700 Subject: [PATCH] export error --- pkg/routing/errors.go | 2 +- pkg/routing/redis.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/routing/errors.go b/pkg/routing/errors.go index 12d6d005..15fd8052 100644 --- a/pkg/routing/errors.go +++ b/pkg/routing/errors.go @@ -9,7 +9,7 @@ var ( ErrNoAvailableNodes = errors.New("could not find any available nodes") ErrIncorrectRTCNode = errors.New("current node isn't the RTC node for the room") 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") ErrChannelFull = errors.New("channel is full") ) diff --git a/pkg/routing/redis.go b/pkg/routing/redis.go index 221059a2..76774e20 100644 --- a/pkg/routing/redis.go +++ b/pkg/routing/redis.go @@ -54,7 +54,7 @@ func publishRTCMessage(rc *redis.Client, nodeId string, participantKey string, m rm = o rm.ParticipantKey = participantKey default: - return errInvalidRouterMessage + return ErrInvalidRouterMessage } data, err := proto.Marshal(rm) if err != nil { @@ -80,7 +80,7 @@ func publishSignalMessage(rc *redis.Client, nodeId string, connectionId string, EndSession: o, } default: - return errInvalidRouterMessage + return ErrInvalidRouterMessage } data, err := proto.Marshal(rm) if err != nil {