Skip to content

Commit b1563a3

Browse files
committed
moving to map of headers
1 parent dfad4ee commit b1563a3

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

lib/protobuf/rpc/rpc.pb.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class ErrorReason < ::Protobuf::Enum
3232
class Request < ::Protobuf::Message; end
3333
class Response < ::Protobuf::Message; end
3434
class Trace < ::Protobuf::Message; end
35+
class MapEntry < ::Protobuf::Message; end
3536

3637

3738
##
@@ -56,8 +57,12 @@ class Response
5657
end
5758

5859
class Trace
59-
optional :string, :type, 1
60-
optional :bytes, :raw, 2
60+
repeated ::Protobuf::Socketrpc::MapEntry, :headers, 1
61+
end
62+
63+
class MapEntry
64+
optional :string, :key, 1
65+
optional :string, :value, 2
6166
end
6267

6368
end

proto/rpc.proto

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ message Response
4848
}
4949

5050
message Trace {
51-
optional string type = 1;
52-
optional bytes raw = 2;
51+
repeated MapEntry headers = 1;
52+
}
53+
54+
message MapEntry {
55+
optional string key = 1;
56+
optional string value = 2;
5357
}
5458

5559
// Possible error reasons

0 commit comments

Comments
 (0)