Skip to content

Commit

Permalink
Updates some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nkcr committed Feb 5, 2020
1 parent f394910 commit 854ea98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions byzcoin/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,7 @@ type PaginateRequest struct {
Backward bool
}

// PaginateResponse is a reponse from a PaginateRequest. It returns the streamID
// so that a new PaginateRequest can use an already created channel.
// PaginateResponse is a reponse from a PaginateRequest.
type PaginateResponse struct {
// A list of consecutive blocks
Blocks []*skipchain.SkipBlock
Expand All @@ -330,7 +329,7 @@ type PaginateResponse struct {
// Used to tell the client if an error occured. Any error code not equal to
// 0 means that something special happened.
ErrorCode uint64
// A list of error messages in case something special happended.
// A list of error messages in case something special happened.
ErrorText []string
}

Expand Down
2 changes: 1 addition & 1 deletion byzcoin/streaming_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func TestStreamingService_PaginateBlocks(t *testing.T) {
NumPages: 0,
Backward: false,
}
// Should be the same paginateResponse chan

paginateResponse, closeChan, err = service.PaginateBlocks(paginateRequest)
require.NoError(t, err)

Expand Down

0 comments on commit 854ea98

Please sign in to comment.