Skip to content

Commit cc660dc

Browse files
fix returns
1 parent e77d5ee commit cc660dc

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/Masterminds/semver/v3 v3.3.1
1010
github.com/blevesearch/bleve/v2 v2.4.4
1111
github.com/dgraph-io/badger/v4 v4.6.0
12-
github.com/dgraph-io/dgo/v250 v250.0.0-20250421044702-8f280c62988a
12+
github.com/dgraph-io/dgo/v250 v250.0.0-20250422053155-49e7e4d58e3e
1313
github.com/dgraph-io/gqlgen v0.13.2
1414
github.com/dgraph-io/gqlparser/v2 v2.2.2
1515
github.com/dgraph-io/graphql-transport-ws v0.0.0-20210511143556-2cef522f1f15

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
122122
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
123123
github.com/dgraph-io/badger/v4 v4.6.0 h1:acOwfOOZ4p1dPRnYzvkVm7rUk2Y21TgPVepCy5dJdFQ=
124124
github.com/dgraph-io/badger/v4 v4.6.0/go.mod h1:KSJ5VTuZNC3Sd+YhvVjk2nYua9UZnnTr/SkXvdtiPgI=
125-
github.com/dgraph-io/dgo/v250 v250.0.0-20250421044702-8f280c62988a h1:hAb0lbE+vOYuLublMbhgBM5YEpW5p3+kWS5FpGp4IwI=
126-
github.com/dgraph-io/dgo/v250 v250.0.0-20250421044702-8f280c62988a/go.mod h1:h1cPCTmI0GZWc770q608FkWEdQfC4iiWYAgvQGnvQ9A=
125+
github.com/dgraph-io/dgo/v250 v250.0.0-20250422053155-49e7e4d58e3e h1:OQPIfYgx57zzqL86EtiF7J0KwyUHzqzwvwDXxMlD8oo=
126+
github.com/dgraph-io/dgo/v250 v250.0.0-20250422053155-49e7e4d58e3e/go.mod h1:h1cPCTmI0GZWc770q608FkWEdQfC4iiWYAgvQGnvQ9A=
127127
github.com/dgraph-io/gqlgen v0.13.2 h1:TNhndk+eHKj5qE7BenKKSYdSIdOGhLqxR1rCiMso9KM=
128128
github.com/dgraph-io/gqlgen v0.13.2/go.mod h1:iCOrOv9lngN7KAo+jMgvUPVDlYHdf7qDwsTkQby2Sis=
129129
github.com/dgraph-io/gqlparser/v2 v2.1.1/go.mod h1:MYS4jppjyx8b9tuUtjV7jU1UFZK6P9fvO8TsIsQtRKU=

worker/import.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func streamToAnotherGroup(in apiv25.Dgraph_StreamSnapshotServer, out pb.Worker_S
100100
}
101101

102102
// Send a close signal to the incoming stream.
103-
if err := in.SendAndClose(&apiv25.ReceiveSnapshotKVRequest{Done: true}); err != nil {
103+
if err := in.SendAndClose(&apiv25.StreamSnapshotResponse{Done: true}); err != nil {
104104
return fmt.Errorf("failed to send: %v", err)
105105
}
106106

@@ -171,7 +171,7 @@ func FlushKvs(stream apiv25.Dgraph_StreamSnapshotServer) error {
171171

172172
glog.Infof("P dir writes DONE. Sending ACK")
173173
// Send an acknowledgement back to the leader.
174-
if err := stream.SendAndClose(&apiv25.ReceiveSnapshotKVRequest{Done: true}); err != nil {
174+
if err := stream.SendAndClose(&apiv25.StreamSnapshotResponse{Done: true}); err != nil {
175175
return err
176176
}
177177

0 commit comments

Comments
 (0)