Skip to content

Commit 6b9dae3

Browse files
committed
refactor(experience): fix didcommagent state enum typo
1 parent a1c7d58 commit 6b9dae3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

EdgeAgentSDK/EdgeAgent/Sources/DIDCommAgent/DIDCommAgent.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class DIDCommAgent {
1010
case stopped
1111
case starting
1212
case running
13-
case stoping
13+
case stopping
1414
}
1515

1616
/// Represents the current state of the agent.
@@ -149,7 +149,7 @@ public class DIDCommAgent {
149149

150150
/**
151151
This function is used to stop the EdgeAgent.
152-
The function sets the state of EdgeAgent to .stoping.
152+
The function sets the state of EdgeAgent to .stopping.
153153
All ongoing events that was created by the EdgeAgent are stopped.
154154
After all the events are stopped the state of the EdgeAgent is set to .stopped.
155155

@@ -158,7 +158,7 @@ public class DIDCommAgent {
158158
public func stop() async throws {
159159
guard state == .running else { return }
160160
logger.info(message: "Stoping agent")
161-
state = .stoping
161+
state = .stopping
162162
cancellables.forEach { $0.cancel() }
163163
connectionManager?.stopAllEvents()
164164
state = .stopped

0 commit comments

Comments
 (0)