Skip to content

Commit

Permalink
adding NIO.EmbeddedEventLoop to shell
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed Jul 29, 2019
1 parent 225b1bf commit 02c8b35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/ExecutorKit/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
@_exported import WebErrorKit
@_exported import protocol NIO.EventLoop
@_exported import class NIO.EventLoopFuture
@_exported import class NIO.EmbeddedEventLoop

2 changes: 1 addition & 1 deletion Sources/ShellKit/Shell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class Shell: Executor {
/// Initializer
/// - Parameter connection: Connection details
/// - Parameter eventLoop: Event loop
public init(_ connection: Connection, on eventLoop: EventLoop) throws {
public init(_ connection: Connection, on eventLoop: EventLoop = EmbeddedEventLoop()) throws {
self.eventLoop = eventLoop
switch connection.storage {
case .local(dir: let dir):
Expand Down

0 comments on commit 02c8b35

Please sign in to comment.