-
Notifications
You must be signed in to change notification settings - Fork 158
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
added feature for extra delay for grpc apis #71
base: master
Are you sure you want to change the base?
Conversation
Can we merge this pr? Ardiannn08 approved it. |
@@ -60,6 +59,7 @@ type Input struct { | |||
} | |||
|
|||
type Output struct { | |||
Delay Duration `json:"delay"` |
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.
I think we can't do it directly under Output struct, can you please create a Meta field and put duration under it?
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.
Hey @jekiapp Duration is meta field defined in file stub/duration.go, such that
type Duration struct {
time.Duration
}
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.
@shubhjha123 I mean like this
type Output struct{
Meta Meta
}
type Meta struct{
Delay Duration
}
Hi, sorry for the delayed review 🙏 I just saw it today. if you're nakama you can reach me by @jeki in slack. |
@jekiapp @shubhjha123 @Ardiannn08 is somebody looking to merge this? This seems to be a need now. |
What is the status on this? |
In our use of gripmock we came across a need of extra delay over grpc response. Added code for extraa delay for grpc apis, which can help library users to configure any delay in their api response.