Skip to content
Merged
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
5 changes: 2 additions & 3 deletions grpc_p2p_client/p2p_client_multi_streams_subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func main() {
if *outputData != "" {
dataDone = make(chan bool)
go func() {
defer wg.Done()
header := fmt.Sprintf("receiver\tsender\tsize\tsha256(msg)")
go writeToFile(ctx, dataCh, dataDone, *outputData, header)
}()
Expand All @@ -105,7 +104,6 @@ func main() {
if *outputTrace != "" {
traceDone = make(chan bool)
go func() {
defer wg.Done()
header := "" //fmt.Sprintf("sender\tsize\tsha256(msg)")
go writeToFile(ctx, traceCh, traceDone, *outputTrace, header)
}()
Expand Down Expand Up @@ -148,6 +146,8 @@ func receiveMessages(ctx context.Context, ip string, writeData bool, dataCh chan
grpc.MaxCallSendMsgSize(math.MaxInt),
),
)

fmt.Printf("IP - %v\n", ip)
Comment thread
kishori82 marked this conversation as resolved.
if err != nil {
log.Fatalf("failed to connect to node %v", err)
}
Expand All @@ -156,7 +156,6 @@ func receiveMessages(ctx context.Context, ip string, writeData bool, dataCh chan
client := protobuf.NewCommandStreamClient(conn)

stream, err := client.ListenCommands(ctx)

if err != nil {
log.Fatalf("ListenCommands: %v", err)
}
Expand Down
Loading