Skip to content

Commit

Permalink
Replace LogFunc with the standard slog.Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
akarl committed Nov 8, 2024
1 parent 571b9af commit c8823ec
Show file tree
Hide file tree
Showing 13 changed files with 473 additions and 274 deletions.
5 changes: 1 addition & 4 deletions benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package amqprpc

import (
"context"
"log"
"testing"
"time"

Expand All @@ -19,13 +18,11 @@ func Benchmark(b *testing.B) {
time.Sleep(1 * time.Second)

confirmingClient := NewClient(testURL).
WithTimeout(3 * time.Minute).
WithErrorLogger(log.Printf)
WithTimeout(3 * time.Minute)

defer confirmingClient.Stop()

fastClient := NewClient(testURL).
WithErrorLogger(log.Printf).
WithTimeout(3 * time.Minute).
WithConfirmMode(false)

Expand Down
Loading

0 comments on commit c8823ec

Please sign in to comment.