Skip to content

Commit

Permalink
fix for can not work broadcast by RedisGroup #252
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jan 9, 2020
1 parent a2e19b3 commit fb8be77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MagicOnion.Redis/RedisGroup.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MagicOnion.Server;
using MagicOnion.Server;
using MagicOnion.Server.Hubs;
using MagicOnion.Utils;
using MessagePack;
Expand Down Expand Up @@ -129,13 +129,13 @@ static Task PublishFromRedisToMemoryGroup(RedisValue value, IGroup group)
{
var excludes = NativeGuidArrayFormatter.Deserialize(ref reader);
var offset = (int)reader.Consumed;
return group.WriteExceptRawAsync(new ArraySegment<byte>(buffer, offset, buffer.Length - offset), excludes, fireAndForget: false);
return group.WriteExceptRawAsync(new ArraySegment<byte>(buffer, offset, buffer.Length - offset), excludes, fireAndForget: true);
}
else
{
var includes = NativeGuidArrayFormatter.Deserialize(ref reader);
var offset = (int)reader.Consumed;
return group.WriteToRawAsync(new ArraySegment<byte>(buffer, offset, buffer.Length - offset), includes, fireAndForget: false);
return group.WriteToRawAsync(new ArraySegment<byte>(buffer, offset, buffer.Length - offset), includes, fireAndForget: true);
}
}

Expand Down

0 comments on commit fb8be77

Please sign in to comment.