From cc169742e8bff4759074586e9eaf8fa28e83a617 Mon Sep 17 00:00:00 2001 From: Akhil Panchal Date: Wed, 6 Dec 2017 16:35:13 -0500 Subject: [PATCH] Use static id for Topic ARN instead of timestamp (#39) --- 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()