Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
1. Not all Ivan suggestions was resolved in previous commit
  • Loading branch information
ayuryshev committed Apr 8, 2019
1 parent b39ae0c commit 0055bf7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/messaging/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ type Config struct {
type Client struct {
Logger *logging.Logger

// edges [2]cipher.PubKey
pubKey cipher.PubKey
secKey cipher.SecKey
dc client.APIClient
Expand Down
1 change: 0 additions & 1 deletion pkg/router/route_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func (rm *routeManager) Serve(rw io.ReadWriter) error {
proto := setup.NewSetupProtocol(rw)
t, body, err := proto.ReadPacket()

fmt.Println("got proto!")
if err != nil {
fmt.Println("err:", err)
return err
Expand Down
12 changes: 11 additions & 1 deletion pkg/transport/entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,17 @@ func ExampleSignedEntry_Signature() {
fmt.Printf("SignatureC got error: %v\n", errSigC.Error())
}

errorsPrint(errIdxA, errIdxB, errSigA, errSigB)
doneCh := make(chan bool)
go func(errs ...error) {
for _, err := range errs {
if err != nil {
fmt.Println(err.Error())
}
}
doneCh <- true
}(errIdxA, errIdxB, errSigA, errSigB)

<-doneCh
// Output: SignatureA got
// SignatureB got
// SignatureC got error: invalid pubkey
Expand Down

0 comments on commit 0055bf7

Please sign in to comment.