Skip to content

Commit

Permalink
remove NewSimpleServer
Browse files Browse the repository at this point in the history
Summary: remove NewSimpleServer

Reviewed By: podtserkovskiy

Differential Revision: D55070040

fbshipit-source-id: e605a36e55074714d158f6ed5bf5fdc58d3e7763
  • Loading branch information
Walter Schulze authored and facebook-github-bot committed Mar 20, 2024
1 parent 06f788c commit d1ae1b5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions thrift/lib/go/thrift/simple_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ type SimpleServer struct {
*ServerOptions
}

// NewSimpleServer create a new server
func NewSimpleServer(processor Processor, serverTransport ServerTransport, transportFactory TransportFactory, protocolFactory ProtocolFactory, options ...func(*ServerOptions)) *SimpleServer {
return NewSimpleServerContext(NewProcessorContextAdapter(processor), serverTransport, transportFactory, protocolFactory, options...)
}

// NewSimpleServerContext creates a new server that supports contexts
func NewSimpleServerContext(processor ProcessorContext, serverTransport ServerTransport, transportFactory TransportFactory, protocolFactory ProtocolFactory, options ...func(*ServerOptions)) *SimpleServer {
return &SimpleServer{
Expand Down

0 comments on commit d1ae1b5

Please sign in to comment.