Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mecid committed Dec 22, 2023
1 parent 8751689 commit 33c71eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct SearchReducer: Reducer {
}
}

struct SearchMiddleware: Middleware {
actor SearchMiddleware: Middleware {
struct Dependencies {
var search: (String) async throws -> SearchResponse

Expand All @@ -52,6 +52,9 @@ struct SearchMiddleware: Middleware {
}

let dependencies: Dependencies
init(dependencies: Dependencies) {
self.dependencies = dependencies
}

func process(state: SearchState, with action: SearchAction) async -> SearchAction? {
switch action {
Expand Down

0 comments on commit 33c71eb

Please sign in to comment.