Skip to content

Commit

Permalink
Removing diff
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski committed Dec 28, 2024
1 parent cdc3aff commit c42dfbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quesma/processors/ab_test_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,12 @@ func (p *ABTestProcessor) Handle(metadata map[string]interface{}, message ...any
resp := make([]byte, 0)
for _, messages := range p.messageStorage {
if len(messages) == 2 {
equal, diff := p.compare(string(messages[0]), string(messages[1]))
equal, _ := p.compare(string(messages[0]), string(messages[1]))
if equal {
resp = append(resp, []byte("ABTestProcessor processor: Responses are equal\n")...)

} else {
resp = append(resp, []byte("ABTestProcessor processor: Responses are not equal\n")...)
fmt.Println(diff)
}
// clean storage
p.messageStorage = make(map[string][][]byte)
Expand Down

0 comments on commit c42dfbc

Please sign in to comment.