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

Return a SignedResponse from the client query-storage-deal command #3389

Merged
Merged
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
4 changes: 2 additions & 2 deletions commands/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ format is specified with the --enc flag.

return re.Emit(resp)
},
Type: storagedeal.Response{},
Type: storagedeal.SignedResponse{},
Encoders: cmds.EncoderMap{
cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, resp *storagedeal.Response) error {
cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, resp *storagedeal.SignedResponse) error {
fmt.Fprintf(w, "Status: %s\n", resp.State.String()) // nolint: errcheck
fmt.Fprintf(w, "Message: %s\n", resp.Message) // nolint: errcheck
return nil
Expand Down