From 50e128c5f0b8e0da74d75528951949d7b5b89fdb Mon Sep 17 00:00:00 2001 From: Akhil Panchal Date: Wed, 6 Dec 2017 16:26:51 -0500 Subject: [PATCH] Use static id for Topic ARN instead of timestamp --- src/main/scala/me/snov/sns/actor/SubscribeActor.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/me/snov/sns/actor/SubscribeActor.scala b/src/main/scala/me/snov/sns/actor/SubscribeActor.scala index 4b05b85..78061d2 100644 --- a/src/main/scala/me/snov/sns/actor/SubscribeActor.scala +++ b/src/main/scala/me/snov/sns/actor/SubscribeActor.scala @@ -97,7 +97,7 @@ class SubscribeActor(dbActor: ActorRef) extends Actor with ActorLogging { topics.values.find(_.name == name) match { case Some(topic) => topic case None => - val topic = Topic(s"arn:aws:sns:us-east-1:${System.currentTimeMillis}:$name", name) + val topic = Topic(s"arn:aws:sns:us-east-1:123456789012:$name", name) topics += (topic.arn -> topic) save()