Skip to content

Commit

Permalink
moved Network import into the if macOS sections
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoSax committed Nov 7, 2021
1 parent 1aa2a55 commit 4b17aa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Sources/Transmission/Connection.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import Foundation
import Network
import Datable
import Transport
import Logging

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))

import Network

public protocol Connection
{
// Reads exactly size bytes
Expand Down
3 changes: 2 additions & 1 deletion Sources/Transmission/TransmissionConnection.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import Foundation
import Network
import Datable
import Transport
import Logging
import SwiftQueue

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))

import Network

public class TransmissionConnection: Transmission.Connection
{
var connection: Transport.Connection
Expand Down
3 changes: 2 additions & 1 deletion Sources/Transmission/TransmissionListener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
//

import Foundation
import Network
import Chord
import Logging

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))

import Network

public class TransmissionListener: Listener
{
let listener: NWListener
Expand Down

0 comments on commit 4b17aa8

Please sign in to comment.