You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iota.apache.org by to...@apache.org on 2016/11/29 23:29:11 UTC
[12/31] incubator-iota git commit: Removed scalastyle in ZMQPublisher
and FeyUIServicer
Removed scalastyle in ZMQPublisher and FeyUIServicer
Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/e5560ee4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/e5560ee4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/e5560ee4
Branch: refs/heads/master
Commit: e5560ee48987c8f0c428742aaf33e9c814b6f717
Parents: 2b585a1
Author: Shivansh <sh...@gmail.com>
Authored: Fri Nov 4 00:19:08 2016 +0530
Committer: Shivansh <sh...@gmail.com>
Committed: Fri Nov 4 00:19:08 2016 +0530
----------------------------------------------------------------------
fey-core/src/main/scala/org/apache/iota/fey/FeyUIService.scala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/e5560ee4/fey-core/src/main/scala/org/apache/iota/fey/FeyUIService.scala
----------------------------------------------------------------------
diff --git a/fey-core/src/main/scala/org/apache/iota/fey/FeyUIService.scala b/fey-core/src/main/scala/org/apache/iota/fey/FeyUIService.scala
index cb48192..46dd832 100644
--- a/fey-core/src/main/scala/org/apache/iota/fey/FeyUIService.scala
+++ b/fey-core/src/main/scala/org/apache/iota/fey/FeyUIService.scala
@@ -38,10 +38,11 @@ object FeyUIService {
class FeyUIService(urlPath: String, port: Int) extends NettyServerComponents with BuiltInComponents {
+ val THREAD_SLEEP_TIME = 2000
lazy val router = Router.from {
case GET(p"/fey/activeactors") => Action {
FEY_CORE_ACTOR.actorRef ! JSON_TREE
- Thread.sleep(2000)
+ Thread.sleep(THREAD_SLEEP_TIME)
val json = IdentifyFeyActors.generateTreeJson()
val jsonTree: String = IdentifyFeyActors.getHTMLTree(json)
Results.Ok(jsonTree).as("text/html")