fixed message channel deadlock

This commit is contained in:
David Zhao
2021-02-07 21:58:20 -08:00
parent 33787fd4f2
commit d13a962afd
4 changed files with 29 additions and 10 deletions
+4 -1
View File
@@ -59,7 +59,7 @@ func publishRTCMessage(rc *redis.Client, nodeId string, participantKey string, m
return err
}
//logger.Debugw("publishing to", "rtcChannel", rtcNodeChannel(nodeId),
//logger.Debugw("publishing to rtc", "rtcChannel", rtcNodeChannel(nodeId),
// "message", rm.Message)
return rc.Publish(redisCtx, rtcNodeChannel(nodeId), data).Err()
}
@@ -84,6 +84,9 @@ func publishSignalMessage(rc *redis.Client, nodeId string, connectionId string,
if err != nil {
return err
}
//logger.Debugw("publishing to signal", "signalChannel", signalNodeChannel(nodeId),
// "message", rm.Message)
return rc.Publish(redisCtx, signalNodeChannel(nodeId), data).Err()
}