Skip to content

Commit

Permalink
Mark header deprecated
Browse files Browse the repository at this point in the history
Summary: As titled.

Reviewed By: mahmednabil109

Differential Revision: D68427785

fbshipit-source-id: 6768d2e7545ca1117b0f60da4daac849063ec63c
  • Loading branch information
echistyakov authored and facebook-github-bot committed Jan 23, 2025
1 parent dbfa22a commit 55a3b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions third-party/thrift/src/thrift/lib/go/thrift/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func WithProtocolID(id types.ProtocolID) ClientOption {
}

// WithHeader sets the transport to Header, protocol Header is implied here.
// Deprecated: use WithUpgradeToRocket() instead.
func WithHeader() ClientOption {
return func(opts *clientOptions) {
opts.transport = TransportIDHeader
Expand Down
1 change: 1 addition & 0 deletions third-party/thrift/src/thrift/lib/go/thrift/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const (
// TransportIDUnknown is the default value for TransportID
TransportIDUnknown TransportID = 0
// TransportIDHeader is the header transport
// Deprecated: use TransportIDUpgradeToRocket instead.
TransportIDHeader TransportID = 1
// TransportIDRocket is the Rocket transport
TransportIDRocket TransportID = 2
Expand Down

0 comments on commit 55a3b4c

Please sign in to comment.