-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/tanlang/add more cmd / 增加更多功能和命令 #2
Conversation
d050820
to
e29530a
Compare
}, | ||
} | ||
|
||
var minerSetAskCmd = &cli.Command{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
考虑分开来设置,flag 夹杂在一起
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
首先,这个开发速度我觉得很强,非常利害!
建议:
- 一个pr不要提如此多,可以分模块命令提
- 提交pr的是第一责任人,希望这个pr的命令首先自己测试过的
route/wrap.go
Outdated
|
||
var err error | ||
|
||
if ctx.Request.ContentLength > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样写感觉还是蛮奇怪的,这意思就是客户端有几种传值的办法?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,尽可能兼容 多种传参方式,因为不能直接判断 是不是带了 body,就只能用间接的方法了
service/service.go
Outdated
return cid, err | ||
} | ||
|
||
func (s *Service) AddrOperate(ctx context.Context, params *AddrsOperateReq) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
待商榷的功能,目前只需要给个更新参数就行,其他的没必要做。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前已经实现了的话,不确定要不要就先保留,明确不要再删掉?
service/service.go
Outdated
} | ||
} | ||
|
||
ret, err := s.Messager.GetMessageByUid(ctx, params.MsgId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不用等待?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要等待,这个接口是无状态可重入的, 只要客户端那边 定时轮询就好
route/route.go
Outdated
|
||
dealGroup := apiV0Group.Group("/deal") | ||
dealGroup.GET("storage", Wrap(s.DealStorageList)) | ||
dealGroup.GET("retrieval", Wrap(s.DealRetrievalList)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
检索的接口目前应该没法判断检索订单到底是谁的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,所以目前返回的结果是所有的,这个要去掉吗?
supply feedback after cmd exec change logger name to cli from cmd fix verbose flag fix err check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
return err rather than panic when create client
…client-with-api Feat/tanlang/replace client with api / 用封装好的 api 代替 httpClient
Linked Issue
ref filecoin-project/venus#5304
Detail
新增命令