-
Notifications
You must be signed in to change notification settings - Fork 67
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
#79 add get interface for polling data #98
Conversation
ea9ea57
to
56d5d85
Compare
add44e9
to
75c336a
Compare
cb87c6a
to
fd064a8
Compare
# Conflicts: # pkg/model/kv.go # server/resource/v1/common.go # server/resource/v1/history_resource.go
冲突有空解决 |
# Conflicts: # server/resource/v1/kv_resource.go # server/service/mongo/track/polling_detail_dao.go
12d2d97
to
4f4bbb9
Compare
# Conflicts: # pkg/model/kv.go # server/resource/v1/history_resource.go # server/resource/v1/history_resource_test.go
server/handler/track_handler.go
Outdated
} | ||
return nil | ||
resp, _ := ir.Result.(*restful.Response) | ||
err := cb(ir) |
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.
不该立刻callback回到前置handler中,应该按顺序执行回去
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.
删除了这段代码
return err | ||
} | ||
return nil | ||
resp, _ := ir.Result.(*restful.Response) |
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.
是否转换成功需要保留,不成功就执行回到前置handler
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.
没有response header是不是也要记录,如果这样就无法记录
WriteErrResponse(context, http.StatusNotFound, err.Error(), common.ContentTypeText) | ||
return | ||
} | ||
WriteErrResponse(context, http.StatusInternalServerError, err.Error(), common.ContentTypeText) |
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.
先给你合入,我正在做统一的错误处理规范,现在错误返回都太随意了
No description provided.