Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more golint fixes #152

Merged
merged 1 commit into from
Sep 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions gbus/abstractions.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ type Deadlettering interface {
ReturnDeadToQueue(ctx context.Context, publishing *amqp.Publishing) error
}

/*
RawMessageHandling provides the ability to consume and send raq amqp messages with the transactional guarantees
that the bus provides
*/
//RawMessageHandling provides the ability to consume and send raq amqp messages with the transactional guarantees that the bus provides
type RawMessageHandling interface {
/*
SetGlobalRawMessageHandler registers a handler that gets called for each amqp.Delivery that is delivered
Expand Down
2 changes: 1 addition & 1 deletion gbus/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func (b *DefaultBus) HandleDeadletter(handler RawMessageHandler) {
b.registerDeadLetterHandler(handler)
}

//HandleDeadletter implements RawMessageHandling.SetGlobalRawMessageHandler
//SetGlobalRawMessageHandler implements RawMessageHandling.SetGlobalRawMessageHandler
func (b *DefaultBus) SetGlobalRawMessageHandler(handler RawMessageHandler) {
metrics.AddHandlerMetrics(handler.Name())
b.globalRawHandler = handler
Expand Down
2 changes: 1 addition & 1 deletion gbus/saga/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (si *Instance) invoke(exchange, routingKey string, invocation *sagaInvocati
}).Info("invoking method on saga")

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

Expand Down
2 changes: 1 addition & 1 deletion tests/testMessages.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var _ gbus.Message = &Reply2{}
var _ gbus.Message = &Event1{}
var _ gbus.Message = &Event2{}

//PoisonMessage is a malformed message to test posion pill scenarios
//PoisonMessage is a malformed message to test poison pill scenarios
type PoisonMessage struct {
}

Expand Down