Skip to content

Commit

Permalink
change PopQueryProtocol implementations to class
Browse files Browse the repository at this point in the history
  • Loading branch information
m-barthelemy committed Apr 6, 2020
1 parent 6269ed1 commit 735bc3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/QueuesFluentDriver/PopQueries/MySQLPopQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SQLKit
import Fluent
import Queues

struct MySQLPop : PopQueryProtocol {
class MySQLPop : PopQueryProtocol {
func pop(db: Database, select: SQLExpression) -> EventLoopFuture<UUID?> {
db.transaction { transaction in
let database = transaction as! SQLDatabase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SQLKit
import Fluent
import Queues

struct PostgresPop : PopQueryProtocol {
final class PostgresPop : PopQueryProtocol {
func pop(db: Database, select: SQLExpression) -> EventLoopFuture<UUID?> {
let database = db as! SQLDatabase
let subQueryGroup = SQLGroupExpression.init(select)
Expand Down
2 changes: 1 addition & 1 deletion Sources/QueuesFluentDriver/PopQueries/SqlitePopQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import SQLKit
import Fluent
import Queues

struct SqlitePop : MySQLPop {
final class SqlitePop : MySQLPop {

}

0 comments on commit 735bc3c

Please sign in to comment.