Skip to content

Commit

Permalink
APID-208 - review comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprakashiv committed Jul 6, 2021
1 parent 0751e8d commit bd53681
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import uk.gov.hmrc.apiplatformoutboundsoap.GlobalContext

class InjectionModule extends AbstractModule {
override def configure() = {
// ...

// Eager initialize Context singleton
bind(classOf[GlobalContext]).asEagerSingleton()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object JsonFormats {
import uk.gov.hmrc.apiplatformoutboundsoap.GlobalContext.injector
val appConfig: AppConfig = injector.instanceOf[AppConfig]

def addressingReads: Reads[Addressing] = (
val addressingReads: Reads[Addressing] = (
(JsPath \ "from").read[String].orElse(Reads.pure(appConfig.addressingFrom)) and
(JsPath \ "to").read[String] and
(JsPath \ "replyTo").read[String].orElse(Reads.pure(appConfig.addressingReplyTo)) and
Expand Down

0 comments on commit bd53681

Please sign in to comment.