You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/09/05 23:11:25 UTC
[22/33] git commit: Removed the pool from the test adapter as it was
timing out and causing errors.
Removed the pool from the test adapter as it was timing out and causing errors.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/10c8d280
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/10c8d280
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/10c8d280
Branch: refs/heads/two-dot-o
Commit: 10c8d280049b2c8deef683ad33e4113efcb37452
Parents: ddc219c
Author: grey <gr...@apigee.com>
Authored: Fri Aug 22 07:52:18 2014 -0700
Committer: grey <gr...@apigee.com>
Committed: Fri Aug 22 07:52:18 2014 -0700
----------------------------------------------------------------------
.../services/notifications/TestAdapter.java | 30 ++++++++++----------
1 file changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/10c8d280/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java b/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
index 1f996a9..2f28364 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
@@ -64,23 +64,23 @@ public class TestAdapter implements ProviderAdapter {
final APNsNotification apnsNotification = APNsNotification.create(
"", payload.toString(), notification, tracker);
- if (pool == null) {
+ // if (pool == null) {
apnsNotification.messageSent();
- } else {
- pool.submit(new Runnable() {
- @Override
- public void run() {
- try {
- Thread.sleep(DELAY);
- apnsNotification.messageSent();
- log.debug("messageSent() - " + payload.toString());
- } catch (Exception e) {
- log.error("messageSent() returned error", e);
- }
- }
- });
- }
+// } else {
+// pool.submit(new Runnable() {
+// @Override
+// public void run() {
+// try {
+// Thread.sleep(DELAY);
+// apnsNotification.messageSent();
+// log.debug("messageSent() - " + payload.toString());
+// } catch (Exception e) {
+// log.error("messageSent() returned error", e);
+// }
+// }
+// });
+// }
}
@Override