Skip to content
Snippets Groups Projects
Commit b9730b8f authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix cmd

parent d5b4249d
No related branches found
No related tags found
3 merge requests!510Release,!226WIP: Api2.0,!207WIP: Client Restructure
...@@ -38,7 +38,7 @@ var broadcastCmd = &cobra.Command{ ...@@ -38,7 +38,7 @@ var broadcastCmd = &cobra.Command{
// Wait until connected or crash on timeout // Wait until connected or crash on timeout
connected := make(chan bool, 10) connected := make(chan bool, 10)
client.GetNetworkInterface().AddHealthCallback( client.GetCmix().AddHealthCallback(
func(isconnected bool) { func(isconnected bool) {
connected <- isconnected connected <- isconnected
}) })
...@@ -147,7 +147,7 @@ var broadcastCmd = &cobra.Command{ ...@@ -147,7 +147,7 @@ var broadcastCmd = &cobra.Command{
receiveChan := make(chan []byte, 100) receiveChan := make(chan []byte, 100)
cb := func(payload []byte, cb := func(payload []byte,
receptionID receptionID.EphemeralIdentity, round rounds.Round) { receptionID receptionID.EphemeralIdentity, round rounds.Round) {
jww.INFO.Printf("Received symmetric message from %s over round %d", receptionID, round) jww.INFO.Printf("Received symmetric message from %s over round %d", receptionID, round.ID)
receiveChan <- payload receiveChan <- payload
} }
...@@ -165,7 +165,7 @@ var broadcastCmd = &cobra.Command{ ...@@ -165,7 +165,7 @@ var broadcastCmd = &cobra.Command{
} }
// Connect to broadcast channel // Connect to broadcast channel
bcl, err := broadcast.NewBroadcastChannel(*channel, cb, client.GetNetworkInterface(), client.GetRng(), broadcast.Param{Method: method}) bcl, err := broadcast.NewBroadcastChannel(*channel, cb, client.GetCmix(), client.GetRng(), broadcast.Param{Method: method})
/* Create properly sized broadcast message */ /* Create properly sized broadcast message */
message := viper.GetString("broadcast") message := viper.GetString("broadcast")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment