Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
1. Merged with last mainnet commit
2. Resolved review with Ivan
  • Loading branch information
ayuryshev committed Apr 8, 2019
1 parent 64edf77 commit b39ae0c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/manager/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func init() {
// User represents a user of the manager.
type User struct {
Name string
PwSalt []byte /* */
PwSalt []byte
PwHash cipher.SHA256
}

Expand Down
1 change: 0 additions & 1 deletion pkg/messaging/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ func (c *Client) Accept(ctx context.Context) (transport.Transport, error) {
func (c *Client) Dial(ctx context.Context, remote cipher.PubKey) (transport.Transport, error) {
entry, err := c.dc.Entry(ctx, remote)
if err != nil {
fmt.Printf("Dial with remote = %v\n", remote)
return nil, fmt.Errorf("get entry failure: %s", err)
}

Expand Down
2 changes: 0 additions & 2 deletions pkg/transport/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ func settlementInitiatorHandshake(public bool) settlementHandshake {
Public: public,
}

// sEntry := &SignedEntry{Entry: entry, Signatures: [2]cipher.Sig{entry.Signature(tm.config.SecKey)}}

sEntry := NewSignedEntry(entry, tm.config.PubKey, tm.config.SecKey)
if err := validateSignedEntry(sEntry, tr, tm.config.PubKey); err != nil {

Expand Down
1 change: 0 additions & 1 deletion pkg/transport/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ func TestTransportManagerReEstablishTransports(t *testing.T) {
m2, err = NewManager(c2, f2)
require.NoError(t, err)

// errCh2 := make(chan error)
go func() {
errCh <- m2.Serve(context.TODO()) // nolint
}()
Expand Down
2 changes: 0 additions & 2 deletions pkg/transport/tcp_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ func TestTCPFactory(t *testing.T) {
tr, err := f2.Dial(context.TODO(), pk1)
require.NoError(t, err)
assert.Equal(t, "tcp", tr.Type())
// assert.Equal(t, pk2, tr.Local())
// assert.Equal(t, pk1, tr.Remote())

buf := make([]byte, 3)
_, err = tr.Read(buf)
Expand Down

0 comments on commit b39ae0c

Please sign in to comment.