Skip to content

Commit 10dd71e

Browse files
committed
Update RemoteSettings.scala
1 parent f71e8fb commit 10dd71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote/src/main/scala/org/apache/pekko/remote/RemoteSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ final class RemoteSettings(val config: Config) {
216216
throw new ConfigurationException("pekko.remote.accept-protocol-names setting must not be empty. " +
217217
"The setting is an array and the only acceptable values are \"pekko\" and \"akka\".")
218218
}
219-
val filteredSet = set.filterNot(s => s == "akka" || s == "pekko")
219+
val filteredSet = set.filterNot(AllowableProtocolNames.contains)
220220
if (filteredSet.nonEmpty) {
221221
throw new ConfigurationException("pekko.remote.accept-protocol-names is an array setting " +
222222
"that only accepts the values \"pekko\" and \"akka\".")

0 commit comments

Comments
 (0)