-
Notifications
You must be signed in to change notification settings - Fork 434
Closed
Description
Currently the client is only able to modify the metadata at the service level, but metadata is meant to be per-call.
grpc-swift/Sources/protoc-gen-swiftgrpc/Generator-Client.swift
Lines 189 to 194 in dd4d1cb
println("/// Asynchronous. Unary.") | |
println("\(access) func \(methodFunctionName)(_ request: \(methodInputName), completion: @escaping (\(methodOutputName)?, CallResult) -> Void) throws -> \(callName) {") | |
indent() | |
println("return try \(callName)Base(channel)") | |
indent() | |
println(".start(request: request, metadata: metadata, completion: completion)") |
Changes:
- Allow an optional metadata to be passed per call
- Add
merge
to Metadata - Merge service metadata and call metadata on
call.start
anjmao, fibercy, xissy and dvaldivia
Metadata
Metadata
Assignees
Labels
No labels