From 5664c4ad14fca54a42356541847e6ae3f9613a87 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 3 Aug 2024 14:09:21 +0300 Subject: can compose and submit in one go --- internal/easyhttp/easyhttp.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/easyhttp') diff --git a/internal/easyhttp/easyhttp.go b/internal/easyhttp/easyhttp.go index c44cce3..2968454 100644 --- a/internal/easyhttp/easyhttp.go +++ b/internal/easyhttp/easyhttp.go @@ -6,6 +6,7 @@ import ( "encoding/json" "fmt" "io" + "log" "net/http" "sync" ) @@ -87,6 +88,7 @@ func PostData[T any](ctx context.Context, uri, apiKey string, data *T, servers . var wg sync.WaitGroup for _, server := range servers { + log.Println("Submitting data to", server) wg.Add(1) go func(server string) { defer wg.Done() -- cgit v1.2.3