Skip to content

Commit

Permalink
fix hessian2 prototol verification
Browse files Browse the repository at this point in the history
  • Loading branch information
DMwangnima committed Dec 17, 2023
1 parent e93578e commit d94bd7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocol/triple/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (s *Server) Start(invoker protocol.Invoker, info *server.ServiceInfo) {
}()
}

// todo(DMwangnima): extract a common function
// RefreshService refreshes Triple Service
func (s *Server) RefreshService(invoker protocol.Invoker, info *server.ServiceInfo) {
var (
Expand All @@ -131,6 +132,7 @@ func (s *Server) RefreshService(invoker protocol.Invoker, info *server.ServiceIn
switch serialization {
case constant.ProtobufSerialization:
case constant.JSONSerialization:
case constant.Hessian2Serialization:
default:
panic(fmt.Sprintf("Unsupported serialization: %s", serialization))
}
Expand Down

0 comments on commit d94bd7d

Please sign in to comment.