Skip to content

Commit 9d4356f

Browse files
committed
Minor fixes after merge
1 parent c4d58b1 commit 9d4356f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

api/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ func ConfigRealtimeRouter(router *gin.RouterGroup) {
2020

2121
// Register Channels
2222
RegisterLiveUpdateRealtimeChannel()
23-
RegisterReactionUpdateRealtimeChannel(daoWrapper)
2423
RegisterLiveRunnerPageUpdateRealtimeChannel(daoWrapper)
24+
RegisterReactionUpdateRealtimeChannel()
2525
RegisterRealtimeChatChannel()
2626
}
2727

api/stream_reactions.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,19 @@ const (
119119
var (
120120
liveReactionListenerMutex sync.RWMutex
121121
liveReactionListener = map[uint]*liveReactionAdminSessionsWrapper{}
122-
daoWrapper dao.DaoWrapper
123122
)
124123

125124
type liveReactionAdminSessionsWrapper struct {
126125
sessions []*realtime.Context
127126
stream uint
128127
}
129128

130-
func RegisterReactionUpdateRealtimeChannel(wrapper dao.DaoWrapper) {
129+
func RegisterReactionUpdateRealtimeChannel() {
131130
RealtimeInstance.RegisterChannel(ReactionUpdateRoomName, realtime.ChannelHandlers{
132131
OnSubscribe: reactionUpdateOnSubscribe,
133132
OnUnsubscribe: reactionUpdateOnUnsubscribe,
134133
OnMessage: reactionUpdateSetStream,
135134
})
136-
daoWrapper = wrapper
137135

138136
go func() {
139137
// Notify admins every 5 seconds

0 commit comments

Comments
 (0)