Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/Proto.Cluster/Gossip/Gossiper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ public async Task SetStateAsync(string key, IMessage value)
}
}

internal Task StartGossipActorAsync(IGossip? gossip = null, IGossipTransport? transport = null)
internal async Task StartGossipActorAsync(IGossip? gossip = null, IGossipTransport? transport = null)
{

await Task.Delay(100); //racy. _cluster.MemberList may be null

_gossip = gossip ?? new Gossip(
_cluster.System.Id,
_cluster.Config.GossipFanout,
Expand All @@ -213,8 +216,7 @@ internal Task StartGossipActorAsync(IGossip? gossip = null, IGossipTransport? tr
tmp.Left.Clear();
_context.Send(_pid, tmp);
});

return Task.CompletedTask;

}

internal Task StartgossipLoopAsync()
Expand Down
Loading