summaryrefslogtreecommitdiff
path: root/internal/easyhttp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-08-03 14:09:21 +0300
committerPaul Buetow <paul@buetow.org>2024-08-03 14:09:21 +0300
commit5664c4ad14fca54a42356541847e6ae3f9613a87 (patch)
tree297757ae2f4038dd649513c40e28f80f755c8690 /internal/easyhttp
parenta10d20b6ce8e462aa1b5c5ffb3ce17111e4faf64 (diff)
can compose and submit in one go
Diffstat (limited to 'internal/easyhttp')
-rw-r--r--internal/easyhttp/easyhttp.go2
1 files changed, 2 insertions, 0 deletions
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()