From 3906b5582c19325fcb5c72dcbeb92bf2d9a4b584 Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Thu, 12 Jan 2012 13:07:34 -0800 Subject: [PATCH] cleanup --- src/net/socialgamer/cah/LongPollServlet.java | 1 + src/net/socialgamer/cah/data/BlackDeck.java | 1 + src/net/socialgamer/cah/data/WhiteDeck.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/net/socialgamer/cah/LongPollServlet.java b/src/net/socialgamer/cah/LongPollServlet.java index c5032a0..f2173d1 100644 --- a/src/net/socialgamer/cah/LongPollServlet.java +++ b/src/net/socialgamer/cah/LongPollServlet.java @@ -30,6 +30,7 @@ public class LongPollServlet extends CahServlet { * Minimum amount of time before timing out and returning a no-op, in nanoseconds. */ private static final long TIMEOUT_BASE = 60 * 1000 * 1000; + // private static final long TIMEOUT_BASE = 10 * 1000 * 1000; /** * Randomness factor added to minimum timeout duration, in nanoseconds. The maximum timeout delay diff --git a/src/net/socialgamer/cah/data/BlackDeck.java b/src/net/socialgamer/cah/data/BlackDeck.java index 01f30b3..8b6132e 100644 --- a/src/net/socialgamer/cah/data/BlackDeck.java +++ b/src/net/socialgamer/cah/data/BlackDeck.java @@ -16,6 +16,7 @@ public class BlackDeck { @SuppressWarnings("unchecked") public BlackDeck() { final Session session = HibernateUtil.instance.sessionFactory.openSession(); + // TODO option to restrict to only stock cards or allow customs deck = session.createQuery("from BlackCard order by random()").list(); dealt = new ArrayList(); } diff --git a/src/net/socialgamer/cah/data/WhiteDeck.java b/src/net/socialgamer/cah/data/WhiteDeck.java index 5231ac6..225fe3d 100644 --- a/src/net/socialgamer/cah/data/WhiteDeck.java +++ b/src/net/socialgamer/cah/data/WhiteDeck.java @@ -17,6 +17,7 @@ public class WhiteDeck { @SuppressWarnings("unchecked") public WhiteDeck() { final Session session = HibernateUtil.instance.sessionFactory.openSession(); + // TODO option to restrict to only stock cards or allow customs deck = session.createQuery("from WhiteCard order by random()").list(); dealt = new ArrayList(); }