amills-vibeirl

Results 7 comments of amills-vibeirl

Here is how you do it with redis: ```golang opt := &redis.Options{ Addr: "localhost:6379", Dialer: func(ctx context.Context, network, addr string) (net.Conn, error) { conn, err := net.DialTimeout(network, addr, 5*time.Second) if...

specifically this happens with the AdminClient, not the other clients, it appears!! This same technique works fine with the Consumer/Producer clients, (not a ton of bogus log events)

is this still accurate as a solution? https://stackoverflow.com/a/70078478/1223975 I tried ^^ and I got this: https://github.com/confluentinc/confluent-kafka-go/issues/1119

If we do a fix for this, let's keep in mind this related issue: https://github.com/gorilla/mux/issues/744

there is no event loop in Goja (TMK). So I am not sure who/what would call the global setInterval. Using Goja for this lib seems like a terrible mistake and...

I see this: https://github.com/logrusorgru/aurora?tab=readme-ov-file#enabledisable-colors but it would be much better if there was an env var instead of just a flag

Tell me if this looks good? It might be good for the readme: ```golang package au import ( "os" "github.com/logrusorgru/aurora/v4" ) var colors = os.Getenv("my_app_with_color") var hasColor = colors !=...