Skip to content

Commit 070305b

Browse files
committed
More chunks
1 parent 9d43b8e commit 070305b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/command/meta_backend.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,7 @@ func (m *Meta) stateStoreInitFromConfig(c *configs.StateStore, factory providers
23492349
TypeName: c.Type,
23502350
Config: stateStoreConfigVal,
23512351
Capabilities: providers.StateStoreClientCapabilities{
2352-
ChunkSize: backendPluggable.DefaultStateStoreChunkSize,
2352+
ChunkSize: chunks.DefaultStateStoreChunkSize,
23532353
},
23542354
})
23552355
diags = diags.Append(cfgStoreResp.Diagnostics)
@@ -2358,10 +2358,10 @@ func (m *Meta) stateStoreInitFromConfig(c *configs.StateStore, factory providers
23582358
}
23592359

23602360
chunkSize := cfgStoreResp.Capabilities.ChunkSize
2361-
if chunkSize == 0 || chunkSize > backendPluggable.MaxStateStoreChunkSize {
2361+
if chunkSize == 0 || chunkSize > chunks.MaxStateStoreChunkSize {
23622362
diags = diags.Append(fmt.Errorf("Failed to negotiate acceptable chunk size. "+
23632363
"Expected size > 0 and <= %d bytes, provider wants %d bytes",
2364-
backendPluggable.MaxStateStoreChunkSize, chunkSize,
2364+
chunks.MaxStateStoreChunkSize, chunkSize,
23652365
))
23662366
return nil, cty.NilVal, cty.NilVal, diags
23672367
}

0 commit comments

Comments
 (0)