This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git
The following commit(s) were added to refs/heads/main by this push:
new 09cf48860d Fix typos in Markdown and Scala files (#2366)
09cf48860d is described below
commit 09cf48860de14f5d72b262927b8146358ab767b3
Author: John Bampton <[email protected]>
AuthorDate: Sat Oct 25 22:45:20 2025 +1000
Fix typos in Markdown and Scala files (#2366)
Minor PR to fix spelling
---
.../src/test/scala/org/apache/pekko/cluster/metrics/EWMASpec.scala | 4 ++--
.../src/main/scala/org/apache/pekko/discovery/ServiceDiscovery.scala | 4 ++--
docs/src/main/paradox/serialization.md | 2 +-
.../pekko/persistence/typed/javadsl/ReplicatedEventSourcing.scala | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/cluster-metrics/src/test/scala/org/apache/pekko/cluster/metrics/EWMASpec.scala
b/cluster-metrics/src/test/scala/org/apache/pekko/cluster/metrics/EWMASpec.scala
index 4f04fc77ee..9ee465b512 100644
---
a/cluster-metrics/src/test/scala/org/apache/pekko/cluster/metrics/EWMASpec.scala
+++
b/cluster-metrics/src/test/scala/org/apache/pekko/cluster/metrics/EWMASpec.scala
@@ -27,13 +27,13 @@ class EWMASpec extends
PekkoSpec(MetricsConfig.defaultEnabled) with MetricsColle
"DataStream" must {
- "calcualate same ewma for constant values" in {
+ "calculate same ewma for constant values" in {
val ds = EWMA(value = 100.0, alpha = 0.18) :+
100.0 :+ 100.0 :+ 100.0
ds.value should ===(100.0 +- 0.001)
}
- "calcualate correct ewma for normal decay" in {
+ "calculate correct ewma for normal decay" in {
val d0 = EWMA(value = 1000.0, alpha = 2.0 / (1 + 10))
d0.value should ===(1000.0 +- 0.01)
val d1 = d0 :+ 10.0
diff --git
a/discovery/src/main/scala/org/apache/pekko/discovery/ServiceDiscovery.scala
b/discovery/src/main/scala/org/apache/pekko/discovery/ServiceDiscovery.scala
index 8687dbb44f..7cf19a5187 100644
--- a/discovery/src/main/scala/org/apache/pekko/discovery/ServiceDiscovery.scala
+++ b/discovery/src/main/scala/org/apache/pekko/discovery/ServiceDiscovery.scala
@@ -89,7 +89,7 @@ object ServiceDiscovery {
/**
* @param host the hostname or the IP address of the target
* @param port optional port number
- * @param address IP address of the target. This is used during cluster
bootstap when available.
+ * @param address IP address of the target. This is used during cluster
bootstrap when available.
*/
def apply(host: String, port: Option[Int], address: Option[InetAddress]):
ResolvedTarget =
new ResolvedTarget(host, port, address)
@@ -99,7 +99,7 @@ object ServiceDiscovery {
* Resolved target host, with optional port and the IP address.
* @param host the hostname or the IP address of the target
* @param port optional port number
- * @param address optional IP address of the target. This is used during
cluster bootstap when available.
+ * @param address optional IP address of the target. This is used during
cluster bootstrap when available.
*/
final class ResolvedTarget(val host: String, val port: Option[Int], val
address: Option[InetAddress])
extends NoSerializationVerificationNeeded {
diff --git a/docs/src/main/paradox/serialization.md
b/docs/src/main/paradox/serialization.md
index f77c144500..23ba295936 100644
--- a/docs/src/main/paradox/serialization.md
+++ b/docs/src/main/paradox/serialization.md
@@ -129,7 +129,7 @@ rolling updates.
@@@ div { .group-scala }
-If you prefer to define the identifier in cofiguration that is supported by
the @apidoc[serialization.BaseSerializer] trait, which
+If you prefer to define the identifier in configuration that is supported by
the @apidoc[serialization.BaseSerializer] trait, which
implements the `def identifier` by reading it from configuration based on the
serializer's class name:
Scala
diff --git
a/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/javadsl/ReplicatedEventSourcing.scala
b/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/javadsl/ReplicatedEventSourcing.scala
index 9fbc6d15e3..19eddb7886 100644
---
a/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/javadsl/ReplicatedEventSourcing.scala
+++
b/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/javadsl/ReplicatedEventSourcing.scala
@@ -84,7 +84,7 @@ object ReplicatedEventSourcing {
/**
* Initialize a replicated event sourced behavior where all entity replicas
are share the same journal configuration.
- * This is typical if there is a shared database and no replica specific
configuratin is required.
+ * This is typical if there is a shared database and no replica specific
configuration is required.
*
* Events from each replica for the same entityId will be replicated to
every copy.
* Care must be taken to handle events in any order as events can happen
concurrently at different replicas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]