Skip to content

Commit

Permalink
Merge pull request #1980 from dedis/fix-be2-daniel-new-server-connected
Browse files Browse the repository at this point in the history
[BE2] Add notify new server connected
  • Loading branch information
sgueissa committed Jun 30, 2024
2 parents 2ab5e66 + be1e3a7 commit b1d7574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ final case class ConnectionMediator(
if (serverMap.isEmpty) {
monitorRef ! Monitor.AtLeastOneServerConnected
gossipManagerRef ! Monitor.AtLeastOneServerConnected
} else {
gossipManagerRef ! ConnectionMediator.NewServerConnected(serverRef, greetServer)
}
serverMap += ((serverRef, greetServer))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ class GossipManagerSuite extends TestKit(ActorSystem("GossipManagerSuiteActorSys

Await.result(output, duration)

// include rumor state
peers.map(_.receiveOne(duration)).count(_ != null) shouldBe 1

}
Expand Down Expand Up @@ -365,7 +364,7 @@ class GossipManagerSuite extends TestKit(ActorSystem("GossipManagerSuiteActorSys
val response = Right(JsonRpcResponse(
RpcValidator.JSON_RPC_VERSION,
ResultObject(0),
Some(1)
Some(4)
))

// by processing the reponse, gossipManager should send again a rumor to a new peer
Expand Down

0 comments on commit b1d7574

Please sign in to comment.