Skip to content

Commit

Permalink
chore: mutexes are 🔥 🔥 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
hnrkndrssn committed Jul 30, 2024
1 parent 9e8b6a2 commit 760adef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions octopusdeploy_framework/resource_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func (r *variableTypeResource) Create(ctx context.Context, req resource.CreateRe
}

func (r *variableTypeResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) {
mutex.Lock()
defer mutex.Unlock()

var data schemas.VariableTypeResourceModel
resp.Diagnostics.Append(req.State.Get(ctx, &data)...)
if resp.Diagnostics.HasError() {
Expand Down

0 comments on commit 760adef

Please sign in to comment.