Unwrap single string interpolation syntax

This commit is contained in:
Matthew de Detrich 2023-05-22 20:47:29 +02:00
parent dc216add10
commit 480f516398
No known key found for this signature in database
GPG key ID: 196CBC8FEAA4CC64
94 changed files with 276 additions and 276 deletions

View file

@ -583,7 +583,7 @@ class DistributedPubSubMediator(settings: DistributedPubSubSettings)
require(
role.forall(cluster.selfRoles.contains),
s"This cluster member [${selfAddress}] doesn't have the role [$role]")
s"This cluster member [$selfAddress] doesn't have the role [$role]")
val removedTimeToLiveMillis = removedTimeToLive.toMillis

View file

@ -116,7 +116,7 @@ private[pekko] class DistributedPubSubMessageSerializer(val system: ExtendedActo
private def addressToProto(address: Address): dm.Address.Builder = address match {
case Address(protocol, system, Some(host), Some(port)) =>
dm.Address.newBuilder().setSystem(system).setHostname(host).setPort(port).setProtocol(protocol)
case _ => throw new IllegalArgumentException(s"Address [${address}] could not be serialized: host or port missing.")
case _ => throw new IllegalArgumentException(s"Address [$address] could not be serialized: host or port missing.")
}
private def addressFromProto(address: dm.Address): Address =