From 54a009fc5abfd2565833031dc9215e8853172c36 Mon Sep 17 00:00:00 2001 From: Ivan Dmitriev <100341+idmitriev@users.noreply.github.com> Date: Thu, 14 Sep 2023 18:19:00 +0400 Subject: [PATCH] Revert dac go upgrade --- dac/go.mod | 2 +- dac/pkg/collection_point.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dac/go.mod b/dac/go.mod index 2757a8a..fd709a9 100644 --- a/dac/go.mod +++ b/dac/go.mod @@ -1,3 +1,3 @@ module github.com/cerebellum-network/cere-ddc-sdk-go/dac -go 1.21 +go 1.18 diff --git a/dac/pkg/collection_point.go b/dac/pkg/collection_point.go index 65797b5..d7b0fee 100644 --- a/dac/pkg/collection_point.go +++ b/dac/pkg/collection_point.go @@ -55,7 +55,8 @@ func (d dacCollectionPoint) SaveFulfillment(fulfillment Fulfillment) error { ctx, cancel := context.WithTimeout(context.Background(), dacTimeout) defer cancel() - req, err := http.NewRequestWithContext(ctx, "POST", d.url.JoinPath(fulfillmentPath).String(), bytes.NewBuffer(json)) + req, err := http.NewRequestWithContext( + ctx, "POST", d.url.JoinPath(fulfillmentPath).String(), bytes.NewBuffer(json)) if err != nil { return fmt.Errorf("failed to create request: %w", err) }