Created
April 3, 2020 11:19
-
-
Save matiasinsaurralde/2b3ccbc28369d2053bee6ff31c35657c to your computer and use it in GitHub Desktop.
cp.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gateway/coprocess.go b/gateway/coprocess.go | |
index d995dd40..c3160974 100644 | |
--- a/gateway/coprocess.go | |
+++ b/gateway/coprocess.go | |
@@ -457,9 +457,9 @@ func (m *CoProcessMiddleware) ProcessRequest(w http.ResponseWriter, r *http.Requ | |
for api := range returnedSession.AccessRights { | |
if _, found := existingSession.AccessRights[api]; found { | |
- if returnedSession.AccessRights[api].Limit != nil && returnedSession.AccessRights[api].Limit != nil { | |
- returnedSession.AccessRights[api].Limit.QuotaRenews = returnedSession.AccessRights[api].Limit.QuotaRenews | |
- returnedSession.AccessRights[api].Limit.QuotaRemaining = returnedSession.AccessRights[api].Limit.QuotaRemaining | |
+ if returnedSession.AccessRights[api].Limit != nil { | |
+ returnedSession.AccessRights[api].Limit.QuotaRenews = existingSession.AccessRights[api].Limit.QuotaRenews | |
+ returnedSession.AccessRights[api].Limit.QuotaRemaining = existingSession.AccessRights[api].Limit.QuotaRemaining | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment