Brian Gough 7 лет назад
Родитель
Сommit
61b3a000b4

+ 1 - 1
services/real-time/app/coffee/ChannelManager.coffee

@@ -24,7 +24,7 @@ module.exports = ChannelManager =
         else
             # get the subscribe promise and return it, the actual subscribe
             # completes in the background
-            subscribePromise = rclient.subscribe channel 
+            subscribePromise = rclient.subscribe channel
             existingChannelSet.set(channel, subscribePromise)
             logger.log {channel}, "subscribed to new channel"
             metrics.inc "subscribe.#{baseChannel}"

+ 2 - 2
services/real-time/test/unit/coffee/RoomManagerTests.coffee

@@ -16,7 +16,7 @@ describe 'RoomManager', ->
 		@RoomManager._clientsInRoom = sinon.stub()
 		@RoomEvents = @RoomManager.eventSource()
 		sinon.spy(@RoomEvents, 'emit')
-		sinon.spy(@RoomEvents, 'once') 
+		sinon.spy(@RoomEvents, 'once')
 	
 	describe "joinProject", ->
 	
@@ -152,7 +152,7 @@ describe 'RoomManager', ->
 			describe "when this is the only client connected", ->
 
 				beforeEach (done) ->
-					# first call is for the join, 
+					# first call is for the join,
 					# second for the leave
 					@RoomManager._clientsInRoom
 						.withArgs(@client, @doc_id)