Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run swift-format
Browse files Browse the repository at this point in the history
adam-fowler committed Nov 27, 2024
1 parent cc26d67 commit d012733
Showing 3 changed files with 23 additions and 14 deletions.
26 changes: 16 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -7,21 +7,27 @@ let package = Package(
name: "hummingbird-redis",
platforms: [.macOS(.v14), .iOS(.v17), .tvOS(.v17)],
products: [
.library(name: "HummingbirdRedis", targets: ["HummingbirdRedis"]),
.library(name: "HummingbirdRedis", targets: ["HummingbirdRedis"])
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.5.0"),
.package(url: "https://github.com/swift-server/RediStack.git", from: "1.4.0"),
],
targets: [
.target(name: "HummingbirdRedis", dependencies: [
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "RediStack", package: "RediStack"),
]),
.testTarget(name: "HummingbirdRedisTests", dependencies: [
.byName(name: "HummingbirdRedis"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "HummingbirdTesting", package: "hummingbird"),
]),
.target(
name: "HummingbirdRedis",
dependencies: [
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "RediStack", package: "RediStack"),
]
),
.testTarget(
name: "HummingbirdRedisTests",
dependencies: [
.byName(name: "HummingbirdRedis"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "HummingbirdTesting", package: "hummingbird"),
]
),
]
)
8 changes: 5 additions & 3 deletions Sources/HummingbirdRedis/RedisConfiguration.swift
Original file line number Diff line number Diff line change
@@ -12,14 +12,16 @@
//
//===----------------------------------------------------------------------===//

// Based of the Vapor redis configuration that can be found
// here https://github.com/vapor/redis/blob/master/Sources/Redis/RedisConfiguration.swift
import struct Foundation.URL
import Hummingbird
import Logging
import NIOCore
import RediStack

import struct Foundation.URL

// Based of the Vapor redis configuration that can be found
// here https://github.com/vapor/redis/blob/master/Sources/Redis/RedisConfiguration.swift

public struct RedisConfiguration {
public typealias ValidationError = RedisConnection.Configuration.ValidationError

3 changes: 2 additions & 1 deletion Tests/HummingbirdRedisTests/RedisTests.swift
Original file line number Diff line number Diff line change
@@ -13,12 +13,13 @@
//===----------------------------------------------------------------------===//

import Hummingbird
@testable import HummingbirdRedis
import HummingbirdTesting
import Logging
import NIOPosix
import XCTest

@testable import HummingbirdRedis

final class HummingbirdRedisTests: XCTestCase {
static let env = Environment()
static let redisHostname = env.get("REDIS_HOSTNAME") ?? "localhost"

0 comments on commit d012733

Please sign in to comment.