Skip to content

Commit fa87818

Browse files
author
Guy Baron
authored
more golint fixes (#152)
1 parent 2c0a897 commit fa87818

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

gbus/abstractions.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ type Deadlettering interface {
138138
ReturnDeadToQueue(ctx context.Context, publishing *amqp.Publishing) error
139139
}
140140

141-
/*
142-
RawMessageHandling provides the ability to consume and send raq amqp messages with the transactional guarantees
143-
that the bus provides
144-
*/
141+
//RawMessageHandling provides the ability to consume and send raq amqp messages with the transactional guarantees that the bus provides
145142
type RawMessageHandling interface {
146143
/*
147144
SetGlobalRawMessageHandler registers a handler that gets called for each amqp.Delivery that is delivered

gbus/bus.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ func (b *DefaultBus) HandleDeadletter(handler RawMessageHandler) {
554554
b.registerDeadLetterHandler(handler)
555555
}
556556

557-
//HandleDeadletter implements RawMessageHandling.SetGlobalRawMessageHandler
557+
//SetGlobalRawMessageHandler implements RawMessageHandling.SetGlobalRawMessageHandler
558558
func (b *DefaultBus) SetGlobalRawMessageHandler(handler RawMessageHandler) {
559559
metrics.AddHandlerMetrics(handler.Name())
560560
b.globalRawHandler = handler

gbus/saga/instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (si *Instance) invoke(exchange, routingKey string, invocation *sagaInvocati
4949
}).Info("invoking method on saga")
5050

5151
span, sctx := opentracing.StartSpanFromContext(invocation.Ctx(), methodName)
52-
// replace the original context with the conext built arround the span so we ca
52+
// replace the original context with the conext built around the span so we ca
5353
// trace the saga handler that is invoked
5454
invocation.ctx = sctx
5555

tests/testMessages.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var _ gbus.Message = &Reply2{}
99
var _ gbus.Message = &Event1{}
1010
var _ gbus.Message = &Event2{}
1111

12-
//PoisonMessage is a malformed message to test posion pill scenarios
12+
//PoisonMessage is a malformed message to test poison pill scenarios
1313
type PoisonMessage struct {
1414
}
1515

0 commit comments

Comments
 (0)