Skip to content

Commit e6448ee

Browse files
fix formatting
1 parent 6659d05 commit e6448ee

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

internal/provider/stream_resource.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type StreamResourceModel struct {
7070
Name types.String `tfsdk:"name"`
7171
Network types.String `tfsdk:"network"`
7272
Dataset types.String `tfsdk:"dataset"`
73-
StartRange types.Int64 `tfsdk:"start_range"`
73+
StartRange types.Int64 `tfsdk:"start_range"`
7474
EndRange types.Int64 `tfsdk:"end_range"`
7575
DatasetBatchSize types.Int64 `tfsdk:"dataset_batch_size"`
7676
IncludeStreamMetadata types.String `tfsdk:"include_stream_metadata"`
@@ -97,32 +97,32 @@ type OptionalFields struct {
9797
// prepareOptionalFields extracts optional fields from StreamResourceModel and converts them to appropriate types.
9898
func (r *StreamResource) prepareOptionalFields(data StreamResourceModel) OptionalFields {
9999
fields := OptionalFields{}
100-
100+
101101
if !data.EndRange.IsNull() {
102102
val := float32(data.EndRange.ValueInt64())
103103
fields.EndRange = &val
104104
}
105-
105+
106106
if !data.FixBlockReorgs.IsNull() {
107107
val := float32(data.FixBlockReorgs.ValueInt64())
108108
fields.FixBlockReorgs = &val
109109
}
110-
110+
111111
if !data.KeepDistanceFromTip.IsNull() {
112112
val := float32(data.KeepDistanceFromTip.ValueInt64())
113113
fields.KeepDistanceFromTip = &val
114114
}
115-
115+
116116
if !data.NotificationEmail.IsNull() {
117117
val := data.NotificationEmail.ValueString()
118118
fields.NotificationEmail = &val
119119
}
120-
120+
121121
if !data.FilterFunction.IsNull() {
122122
val := data.FilterFunction.ValueString()
123123
fields.FilterFunction = &val
124124
}
125-
125+
126126
return fields
127127
}
128128

@@ -683,7 +683,7 @@ func (r *StreamResource) Create(ctx context.Context, req resource.CreateRequest,
683683
fixBlockReorgs := optionalFields.FixBlockReorgs
684684
keepDistanceFromTip := optionalFields.KeepDistanceFromTip
685685
notificationEmail := optionalFields.NotificationEmail
686-
686+
687687
// Handle filter_function separately as it's a string, not pointer
688688
var filterFunction string
689689
if !data.FilterFunction.IsNull() {
@@ -1000,7 +1000,7 @@ func (r *StreamResource) Update(ctx context.Context, req resource.UpdateRequest,
10001000
fixBlockReorgs := optionalFields.FixBlockReorgs
10011001
keepDistanceFromTip := optionalFields.KeepDistanceFromTip
10021002
notificationEmail := optionalFields.NotificationEmail
1003-
1003+
10041004
// Handle filter_function separately as it's a string pointer
10051005
var filterFunction *string
10061006
if !plan.FilterFunction.IsNull() {

internal/provider/stream_resource_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ func TestAccMinimalQuicknodeStreamResource(t *testing.T) {
100100
})
101101
}
102102

103-
104-
105-
106-
107103
func testAccQuickNodeStreamResource(name string, destination string) string {
108104
return providerConfig + fmt.Sprintf(`
109105
resource "quicknode_stream" "main" {

0 commit comments

Comments
 (0)