Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/recover #372

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions fuse/ipns/ipns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ func verifyFile(t *testing.T, path string, wantData []byte) {
t.Fatal(err)
}
if len(isData) != len(wantData) {
t.Fatal("data not equal - length check failed")
t.Fatal("Data not equal - length check failed")
}
if !bytes.Equal(isData, wantData) {
t.Fatal("data not equal")
t.Fatal("Data not equal")
}
}

Expand Down Expand Up @@ -328,7 +328,7 @@ func TestAppendFile(t *testing.T) {
t.Fatal(err)
}
if !bytes.Equal(rbuf, data) {
t.Fatal("data inconsistent!")
t.Fatal("Data inconsistent!")
}
}

Expand Down Expand Up @@ -458,7 +458,7 @@ func TestFSThrash(t *testing.T) {
}

if !bytes.Equal(data, out) {
t.Errorf("data didn't match in %s: expected %v, got %v", name, data, out)
t.Errorf("Data didn't match in %s: expected %v, got %v", name, data, out)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion fuse/readonly/readonly_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (s *Node) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadR
if err != nil {
return err
}
// data has a capacity of Size
// Data has a capacity of Size
buf := resp.Data[:int(req.Size)]
n, err := io.ReadFull(r, buf)
resp.Data = buf[:n]
Expand Down
4 changes: 2 additions & 2 deletions settlement/swap/vault/cashout.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func cashoutActionKey(vault common.Address, token common.Address) string {
//
// output, err := s.transactionService.Call(ctx, &transaction.TxRequest{
// To: &vault,
// data: callData,
// Data: callData,
// })
// if err != nil {
// return nil, err
Expand Down Expand Up @@ -198,7 +198,7 @@ func (s *cashoutService) CashCheque(ctx context.Context, vault, recipient common
//}
//request := &transaction.TxRequest{
// To: &vault,
// data: callData,
// Data: callData,
// Value: big.NewInt(0),
// Description: "cheque cashout",
//}
Expand Down
4 changes: 2 additions & 2 deletions settlement/swap/vault/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ func TestFactoryVerifyVault(t *testing.T) {
// Status: 1,
// Logs: []*types.Log{
// {
// data: logData,
// Data: logData,
// },
// {
// Address: factoryAddress,
// Topics: []common.Hash{simpleSwapDeployedEvent.ID},
// data: logData,
// Data: logData,
// },
// },
// }, nil
Expand Down
2 changes: 1 addition & 1 deletion settlement/swap/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func (s *service) LastCheques(token common.Address) (map[common.Address]*SignedC
//
// request := &transaction.TxRequest{
// To: &s.address,
// data: callData,
// Data: callData,
// Value: big.NewInt(0),
// Description: fmt.Sprintf("vault withdrawal of %d WBTT", amount),
// }
Expand Down
Loading