Skip to content

Commit

Permalink
bump required client version to '1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Sep 13, 2024
1 parent e3c67d8 commit 98e1eec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/handler_convo.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func (s *server) Converse(ctx context.Context, stream *connect.BidiStream[pbconv
if !ok {
return fmt.Errorf("begin with UserInput_Start message")
}
if start.Start.Version < 1 {
return fmt.Errorf("unsupported protocol version %d, please upgrade your `substreams` client", start.Start.Version)
}

convo := codegen.Registry[start.Start.GeneratorId]
if convo == nil {
Expand Down

0 comments on commit 98e1eec

Please sign in to comment.