Skip to content

Commit

Permalink
Make ConnectivityObserver class final (#375)
Browse files Browse the repository at this point in the history
* Make ConnectivityObserver class final

This is `private` to the file and will never be subclassed.

Also moved the setting of `underlyingCompletionQueue` inline to where it's declared.

* CR
  • Loading branch information
rebello95 authored and MrMage committed Feb 25, 2019
1 parent ac3e175 commit 5f24269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftGRPC/Core/Channel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public class Channel {
}

private extension Channel {
class ConnectivityObserver {
final class ConnectivityObserver {
private let completionQueue: CompletionQueue
private let underlyingChannel: UnsafeMutableRawPointer
private let underlyingCompletionQueue: UnsafeMutableRawPointer
Expand Down

0 comments on commit 5f24269

Please sign in to comment.