cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Fixing the last commit
Date Mon, 01 Feb 2016 15:31:16 GMT
Repository: cxf
Updated Branches:
  refs/heads/master ad3be395e -> 072aba653


Fixing the last commit


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/072aba65
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/072aba65
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/072aba65

Branch: refs/heads/master
Commit: 072aba65357bd64c7e87b6f23c6af079e4dbc3a7
Parents: ad3be39
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Feb 1 15:31:02 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Feb 1 15:31:02 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/throttling/SimpleThrottlingManager.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/072aba65/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
----------------------------------------------------------------------
diff --git a/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
b/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
index 7dd8498..7c5ec84 100644
--- a/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
+++ b/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
@@ -43,9 +43,9 @@ public class SimpleThrottlingManager extends ThrottleResponse implements
Throttl
         if (m.containsKey(THROTTLED_KEY)) {
             return null;
         }
-        m.put(ThrottlingCounter.class, counter);
+        m.getExchange().put(ThrottlingCounter.class, counter);
         if (counter.incrementAndGet() >= threshold) {
-            m.getExchange().put(THROTTLED_KEY, true);
+            m.put(THROTTLED_KEY, true);
             return this;
         } else {
             return null;


Mime
View raw message