Skip to content

Commit

Permalink
# feat(pb): 移除定义Subscriber方法
Browse files Browse the repository at this point in the history
  • Loading branch information
guihouchang committed Nov 23, 2022
1 parent 09a1154 commit 6d7c15b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ type {{.ServiceType}}EventServer interface {
{{- end}}
}
type SubscriberGenerator func(topic string) message.Subscriber
type {{.ServiceType}}SubscriberGenerator func(topic string) message.Subscriber
func Register{{.ServiceType}}EventServer(r *message.Router, sg SubscriberGenerator, srv {{.ServiceType}}EventServer) {
func Register{{.ServiceType}}EventServer(r *message.Router, sg func(topic string) message.Subscriber, srv {{.ServiceType}}EventServer) {
{{- range .Methods}}
r.AddNoPublisherHandler(
"{{.EventName}}",
Expand Down

0 comments on commit 6d7c15b

Please sign in to comment.