Skip to content

Commit b7fa102

Browse files
author
Sean Sain
committed
remove mutexkv import
1 parent 043ac34 commit b7fa102

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

sumologic/provider.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"strings"
99

1010
"github.com/go-errors/errors"
11-
"github.com/hashicorp/terraform-plugin-sdk/helper/mutexkv"
1211
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1312
"github.com/hashicorp/terraform-plugin-sdk/terraform"
1413
)
@@ -89,8 +88,6 @@ func Provider() terraform.ResourceProvider {
8988
}
9089
}
9190

92-
var SumoMutexKV = mutexkv.NewMutexKV()
93-
9491
func resolveRedirectURL(accessId string, accessKey string) (string, error) {
9592
req, err := http.NewRequest(http.MethodHead, "https://api.sumologic.com/api/v1/collectors", nil)
9693
if err != nil {

sumologic/sumologic_client.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ func (s *Client) PostRawPayload(urlPath string, payload string) ([]byte, error)
186186
}
187187

188188
func (s *Client) Put(urlPath string, payload interface{}, isAdminMode bool) ([]byte, error) {
189-
SumoMutexKV.Lock(urlPath)
190-
defer SumoMutexKV.Unlock(urlPath)
191-
192189
relativeURL, _ := url.Parse(urlPath)
193190
sumoURL := s.BaseURL.ResolveReference(relativeURL)
194191

0 commit comments

Comments
 (0)