Skip to content

Commit

Permalink
Update the gRPC address and add logs when connected to other nodes (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneetha17 authored and conor10 committed Aug 8, 2018
1 parent 9b3c884 commit 1a124b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ func (s *PartyInfo) GetPartyInfoGrpc() {
if err != nil {
log.Errorf("Error in updating party info %s", err)
continue
} else {
log.Printf("Connected to the other node %s", rawUrl)
}
err = s.updatePartyInfoGrpc(*partyInfoResp, s.url)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/proto_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (tm *TransactionManager) startJsonServer(port int, grpcJsonPort int) error
}

func (tm *TransactionManager) startRestServer(port int) error {
grpcAddress := fmt.Sprintf("%s:%d", "localhost", port)
grpcAddress := fmt.Sprintf(":%d", port)
lis, err := net.Listen("tcp", grpcAddress)
if err != nil {
panic(err)
Expand Down

0 comments on commit 1a124b3

Please sign in to comment.