Skip to content

Commit c0e0eb1

Browse files
authored
Stop using deprecated protobuf API (#2045)
Motivation: swift-protobuf 1.27.0 deprecated the `init` from `serializedData` in favor of the `serializedBytes` variant. Modifications: - Stop using `serializedData` Result: Fewer warnings
1 parent e210e19 commit c0e0eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GRPCReflectionService/Server/ReflectionService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ extension ReflectionService {
366366
"""
367367
)
368368
}
369-
return try Google_Protobuf_FileDescriptorProto(serializedData: serializedData)
369+
return try Google_Protobuf_FileDescriptorProto(serializedBytes: serializedData)
370370
}
371371

372372
static func readSerializedFileDescriptorProtos(

0 commit comments

Comments
 (0)