Skip to content

Commit 76fd73f

Browse files
committed
refactor/removed ObpActorInit.scala
1 parent f22763c commit 76fd73f

File tree

3 files changed

+0
-83
lines changed

3 files changed

+0
-83
lines changed

obp-api/src/main/scala/code/actorsystem/ObpActorInit.scala

-53
This file was deleted.

obp-api/src/main/scala/code/actorsystem/ObpLookupSystem.scala

-28
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,6 @@ trait ObpLookupSystem extends MdcLoggable {
2828
obpLookupSystem
2929
}
3030

31-
def getKafkaActor(actorName: String) = {
32-
33-
val actorPath: String = {
34-
val hostname = ObpActorConfig.localHostname
35-
val port = ObpActorConfig.localPort
36-
val props_hostname = Helper.getHostname
37-
if (port == 0) {
38-
logger.error("Failed to connect to local Kafka actor")
39-
}
40-
s"akka.tcp://ObpActorSystem_${props_hostname}@${hostname}:${port}/user/${actorName}"
41-
}
42-
43-
this.obpLookupSystem.actorSelection(actorPath)
44-
}
45-
46-
def getKafkaActorChild(actorName: String, actorChildName: String) = {
47-
val actorPath: String = {
48-
val hostname = ObpActorConfig.localHostname
49-
val port = ObpActorConfig.localPort
50-
val props_hostname = Helper.getHostname
51-
if (port == 0) {
52-
logger.error("Failed to connect to local Kafka actor")
53-
}
54-
s"akka.tcp://ObpActorSystem_${props_hostname}@${hostname}:${port}/user/${actorName}/${actorChildName}"
55-
}
56-
this.obpLookupSystem.actorSelection(actorPath)
57-
}
58-
5931
def getActor(actorName: String) = {
6032

6133
val actorPath: String = {

obp-api/src/main/scala/code/bankconnectors/Connector.scala

-2
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,6 @@ trait Connector extends MdcLoggable {
691691
callContext: Option[CallContext]
692692
): OBPReturnType[Box[PhysicalCardTrait]] = Future{(Failure{setUnimplementedError(nameOf(updatePhysicalCard _))}, callContext)}
693693

694-
695-
//Note: introduce v210 here, is for kafka connectors, use callContext and return Future.
696694
def makePaymentv210(fromAccount: BankAccount,
697695
toAccount: BankAccount,
698696
transactionRequestId: TransactionRequestId,

0 commit comments

Comments
 (0)