Skip to content

Commit

Permalink
refactor(experience): fix didcommagent state enum typo
Browse files Browse the repository at this point in the history
  • Loading branch information
coveloper committed Jan 6, 2025
1 parent a1c7d58 commit 6b9dae3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class DIDCommAgent {
case stopped
case starting
case running
case stoping
case stopping
}

/// Represents the current state of the agent.
Expand Down Expand Up @@ -149,7 +149,7 @@ public class DIDCommAgent {

/**
This function is used to stop the EdgeAgent.
The function sets the state of EdgeAgent to .stoping.
The function sets the state of EdgeAgent to .stopping.
All ongoing events that was created by the EdgeAgent are stopped.
After all the events are stopped the state of the EdgeAgent is set to .stopped.

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

0 comments on commit 6b9dae3

Please sign in to comment.