Skip to content

Commit

Permalink
chore: naming for anonymous functions changed
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-svensson committed Feb 13, 2024
1 parent 93709b3 commit a33ae3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/sparetimecoders/goamqp

go 1.21
go 1.22

require (
github.com/google/uuid v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion request_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func Test_RequestResponseHandler(t *testing.T) {

require.Len(t, *conn.queueConsumers, 1)
handler, _ := conn.queueConsumers.get("svc.direct.exchange.request.queue", "key")
require.Equal(t, "github.com/sparetimecoders/goamqp.ServiceRequestConsumer[...].func1", runtime.FuncForPC(reflect.ValueOf(handler).Pointer()).Name())
require.Equal(t, "github.com/sparetimecoders/goamqp.ServiceRequestConsumer[...].1", runtime.FuncForPC(reflect.ValueOf(handler).Pointer()).Name())
missing, exists := conn.queueConsumers.get("miggins", "key")
require.Nil(t, missing)
require.False(t, exists)
Expand Down

0 comments on commit a33ae3f

Please sign in to comment.