File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Examples/reflection-server/Sources Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ struct ReflectionServer: AsyncParsableCommand {
28
28
29
29
func run( ) async throws {
30
30
// Find descriptor sets ('*.pb') bundled with this example.
31
- let urls = Bundle . module. urls (
32
- forResourcesWithExtension: " pb " ,
33
- subdirectory: " DescriptorSets "
34
- )
31
+ let paths = Bundle . module. paths ( forResourcesOfType: " pb " , inDirectory: " DescriptorSets " )
35
32
36
33
// Start the server with the reflection service and the echo service.
37
34
let server = GRPCServer (
@@ -40,7 +37,7 @@ struct ReflectionServer: AsyncParsableCommand {
40
37
transportSecurity: . plaintext
41
38
) ,
42
39
services: [
43
- try ReflectionService ( descriptorSetFileURLs : urls ?? [ ] ) ,
40
+ try ReflectionService ( descriptorSetFilePaths : paths ) ,
44
41
EchoService ( ) ,
45
42
]
46
43
)
You can’t perform that action at this time.
0 commit comments