Skip to content

Commit 6de74ba

Browse files
revert var name change
1 parent 6497b47 commit 6de74ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/provider/stream_resource.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ func (r *StreamResource) Create(ctx context.Context, req resource.CreateRequest,
676676

677677
// Prepare data for API
678678
datasetBatchSize := float32(data.DatasetBatchSize.ValueInt64())
679-
startRangeInt64 := data.StartRange.ValueInt64()
680-
startRangePtr := &startRangeInt64
679+
startRange := data.StartRange.ValueInt64()
680+
startRangePtr := &startRange
681681

682682
// Prepare optional fields using helper function
683683
optionalFields := prepareOptionalFields(data)
@@ -985,7 +985,7 @@ func (r *StreamResource) Update(ctx context.Context, req resource.UpdateRequest,
985985

986986
// Prepare required fields as pointers
987987
name := plan.Name.ValueString()
988-
startRangeInt64 := plan.StartRange.ValueInt64()
988+
startRange := plan.StartRange.ValueInt64()
989989
datasetBatchSize := float32(plan.DatasetBatchSize.ValueInt64())
990990
elasticBatchEnabled := plan.ElasticBatchEnabled.ValueBool()
991991
includeStreamMetadata := streams.UpdateStreamDtoIncludeStreamMetadata(plan.IncludeStreamMetadata.ValueString())
@@ -1064,7 +1064,7 @@ func (r *StreamResource) Update(ctx context.Context, req resource.UpdateRequest,
10641064

10651065
updateResp, err := r.client.UpdateWithResponse(ctx, streamId, streams.UpdateJSONRequestBody{
10661066
Name: &name,
1067-
StartRange: &startRangeInt64,
1067+
StartRange: &startRange,
10681068
EndRange: optionalFields.EndRange,
10691069
DatasetBatchSize: &datasetBatchSize,
10701070
IncludeStreamMetadata: &includeStreamMetadata,

0 commit comments

Comments
 (0)