소스 검색

Revert "Fix HelloWorld Samples (#1505)" (#1506)

This reverts commit 4915076adf40d907559b8464511769a66f85980b.
Cory Benfield 3 년 전
부모
커밋
930667fc61
2개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      Sources/Examples/HelloWorld/Client/main.swift
  2. 0 1
      Sources/Examples/HelloWorld/Server/main.swift

+ 0 - 1
Sources/Examples/HelloWorld/Client/helloworldclient.swift → Sources/Examples/HelloWorld/Client/main.swift

@@ -20,7 +20,6 @@ import HelloWorldModel
 import NIOCore
 import NIOPosix
 
-@main
 @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
 struct HelloWorld: AsyncParsableCommand {
   @Option(help: "The port to connect to")

+ 0 - 1
Sources/Examples/HelloWorld/Server/HelloWorldServer.swift → Sources/Examples/HelloWorld/Server/main.swift

@@ -20,7 +20,6 @@ import HelloWorldModel
 import NIOCore
 import NIOPosix
 
-@main
 @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
 struct HelloWorld: AsyncParsableCommand {
   @Option(help: "The port to listen on for new connections")