Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/GRPC/GRPCTimeout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public struct GRPCTimeout: CustomStringConvertible, Equatable {

// See "Timeout" in https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests
let description = "\(amount)\(unit.rawValue)"
let nanoseconds = Int64(amount) * Int64(unit.asNanoseconds)
let nanoseconds = Int64(amount) * unit.asNanoseconds

return GRPCTimeout(nanoseconds: nanoseconds, description: description)
}
Expand Down Expand Up @@ -133,7 +133,7 @@ private enum GRPCTimeoutUnit: String {
case microseconds = "u"
case nanoseconds = "n"

internal var asNanoseconds: Int {
internal var asNanoseconds: Int64 {
switch self {
case .hours:
return 60 * 60 * 1000 * 1000 * 1000
Expand Down