Skip to content

Commit d297e3f

Browse files
SarahFrenchradeksimko
authored andcommitted
Seeing what it looks like to use 'message' as name
1 parent 31f82d1 commit d297e3f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tfprotov6/state_store.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type ReadStateBytesRequest struct {
5353
}
5454

5555
type ReadStateBytesStream struct {
56-
Chunks iter.Seq[ReadStateByteChunk]
56+
Messages iter.Seq[ReadStateByteStreamMsg]
5757
}
5858

5959
type WriteStateBytesStream struct {
@@ -65,18 +65,16 @@ type WriteStateBytesStream struct {
6565
// 2. Any gRPC-related errors the provider server encountered when
6666
// receiving data from Terraform core.
6767
type WriteStateBytesStreamMsg struct {
68-
Chunk WriteStateByteChunk
68+
Chunk StateByteChunk
6969
Err error
7070
}
7171

7272
type WriteStateBytesResponse struct {
7373
Diagnostics []*Diagnostic
7474
}
7575

76-
type WriteStateByteChunk = StateByteChunk
77-
78-
type ReadStateByteChunk struct {
79-
StateByteChunk
76+
type ReadStateByteStreamMsg struct {
77+
Chunk StateByteChunk
8078
Diagnostics []*Diagnostic
8179
}
8280

0 commit comments

Comments
 (0)