Skip to content

Commit

Permalink
Fixed wrong file naming
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Guardiani <[email protected]>
  • Loading branch information
slinkydeveloper committed Mar 18, 2020
1 parent 0967f57 commit 219881e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ func (f *MessageHandler) ServeHTTP(response nethttp.ResponseWriter, request *net

// dispatch takes the event, fans it out to each subscription in f.config. If all the fanned out
// events return successfully, then return nil. Else, return an error.
func (f *MessageHandler) dispatch(ctx context.Context, message binding.Message, transformers []binding.TransformerFactory, additionalHeaders nethttp.Header) error {
func (f *MessageHandler) dispatch(ctx context.Context, originalMessage binding.Message, transformers []binding.TransformerFactory, additionalHeaders nethttp.Header) error {
// We buffer the message and bind the lifecycle with all fanout requests acks from other messages are received
subs := len(f.config.Subscriptions)
var err error
message, err = buffering.BufferMessage(ctx, message, transformers)
message, err := buffering.BufferMessage(ctx, originalMessage, transformers)
if err != nil {
return err
}
_ = originalMessage.Finish(nil)

message = buffering.WithAcksBeforeFinish(message, subs)

errorCh := make(chan error, subs)
Expand Down
File renamed without changes.

0 comments on commit 219881e

Please sign in to comment.