Skip to content

Commit

Permalink
Fix typing 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
pstibrany committed Oct 6, 2023
1 parent 9d8eea6 commit 0d739db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/limits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func (m *methodLimiter) RPCCallStarting(ctx context.Context, methodName string,
func (m *methodLimiter) RPCCallFinished(ctx context.Context) {
m.allInflight.Dec()

methodName := ctx.Value(ctxMethodName).(ctxKey)
if string(methodName) == m.protectedMethod && m.protectedMethodInflightLimit > 0 {
methodName := ctx.Value(ctxMethodName).(string)
if methodName == m.protectedMethod && m.protectedMethodInflightLimit > 0 {
m.protectedMethodInflight.Dec()
}
}

0 comments on commit 0d739db

Please sign in to comment.