1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-30 10:10:44 +02:00

remove deprecated function

This commit is contained in:
asim 2022-07-22 20:11:27 +01:00
parent ec847fa60c
commit 678c227061

View File

@ -82,11 +82,6 @@ func NewEvent(topic string, c client.Client) Event {
return &event{c, topic}
}
// Deprecated: NewPublisher returns a new Publisher
func NewPublisher(topic string, c client.Client) Event {
return NewEvent(topic, c)
}
// RegisterHandler is syntactic sugar for registering a handler
func RegisterHandler(s server.Server, h interface{}, opts ...server.HandlerOption) error {
return s.Handle(s.NewHandler(h, opts...))