Преглед на файлове

Make ConnectivityObserver class final (#375)

* 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
Michael Rebello преди 6 години
родител
ревизия
5f24269988
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Sources/SwiftGRPC/Core/Channel.swift

+ 1 - 1
Sources/SwiftGRPC/Core/Channel.swift

@@ -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