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

fix(mutation): Mutation request stuck when --limit flag is set #8656

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

shivaji-dgraph
Copy link
Contributor

@shivaji-dgraph shivaji-dgraph commented Feb 8, 2023

@coveralls
Copy link

coveralls commented Feb 8, 2023

Coverage Status

Coverage: 66.659% (-0.4%) from 67.071% when pulling c636e6e on shiva/limit into a153ed5 on main.

@@ -208,7 +208,7 @@ func (s *Server) AssignIds(ctx context.Context, num *pb.Num) (*pb.AssignedIds, e
// Return error after random delay.
//nolint:gosec // random generator in closed set does not require cryptographic precision
delay := rand.Intn(int(opts.limiterConfig.RefillAfter))
time.Sleep(time.Duration(delay) * time.Second)
time.Sleep(time.Duration(delay))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, good catch!

@mangalaman93 mangalaman93 merged commit 3c100d5 into main Feb 8, 2023
@mangalaman93 mangalaman93 deleted the shiva/limit branch February 8, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants