(stream string)
| 573 | } |
| 574 | |
| 575 | func checkStreamName(stream string) error { |
| 576 | if stream == _EMPTY_ { |
| 577 | return ErrStreamNameRequired |
| 578 | } |
| 579 | if strings.ContainsAny(stream, ". ") { |
| 580 | return ErrInvalidStreamName |
| 581 | } |
| 582 | return nil |
| 583 | } |
| 584 | |
| 585 | // Check that the consumer name is not empty and is valid (does not contain "." and " "). |
| 586 | // Additional consumer name validation is done in nats-server. |
no outgoing calls
no test coverage detected