Skip to content

Commit

Permalink
Update pkg/stream/environment.go
Browse files Browse the repository at this point in the history
Co-authored-by: Alberto Moretti <[email protected]>
  • Loading branch information
Gsantomaggio and hiimjako authored Nov 22, 2024
1 parent c66eb81 commit 803df1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stream/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func NewEnvironment(options *EnvironmentOptions) (*Environment, error) {
}
}(client)

//// we put a limit to the heartbeat.
//// it doesn't make sense to have a heartbeat less than 3 seconds
// we put a limit to the heartbeat.
// it doesn't make sense to have a heartbeat less than 3 seconds
if options.TCPParameters.RequestedHeartbeat < (3 * time.Second) {
return nil, errors.New("RequestedHeartbeat must be greater than 3 seconds")
}
Expand Down

0 comments on commit 803df1a

Please sign in to comment.