fix repocard issues (#2)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit was merged in pull request #2.
	This commit is contained in:
		
							
								
								
									
										9
									
								
								micro.go
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								micro.go
									
									
									
									
									
								
							| @@ -71,10 +71,8 @@ type Event interface { | ||||
| 	Publish(ctx context.Context, msg interface{}, opts ...client.PublishOption) error | ||||
| } | ||||
|  | ||||
| // Type alias to satisfy the deprecation | ||||
| type Publisher = Event | ||||
|  | ||||
| var ( | ||||
| 	// HeaderPrefix for all headers passed | ||||
| 	HeaderPrefix = "Micro-" | ||||
| ) | ||||
|  | ||||
| @@ -104,11 +102,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...)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user