Skip to content

Commit

Permalink
Adds full conformance to the RedisClient protocol to use the contex…
Browse files Browse the repository at this point in the history
…t's eventLoop for commands vs the default `RedisConnectionPool`s eventLoop for commands. (#27)
  • Loading branch information
Andrewangeta committed May 19, 2021
1 parent ea77bf3 commit 2728477
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/QueuesRedisDriver/JobsRedisDriver.swift
Expand Up @@ -102,6 +102,10 @@ extension _QueuesRedisQueue: RedisClient {
return true
}

var eventLoop: EventLoop {
self.context.eventLoop
}

func send(command: String, with arguments: [RESPValue]) -> EventLoopFuture<RESPValue> {
self.client.send(command: command, with: arguments)
}
Expand Down

0 comments on commit 2728477

Please sign in to comment.