Add deprecation warning to NATS Streaming component (#3043)

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Bernd Verst <github@bernd.dev>
This commit is contained in:
Alessandro (Ale) Segala 2023-08-10 17:27:58 -07:00 committed by GitHub
parent ecf14bc713
commit d16fd9ac63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ func parseNATSStreamingMetadata(meta pubsub.Metadata) (natsMetadata, error) {
}
func (n *natsStreamingPubSub) Init(_ context.Context, metadata pubsub.Metadata) error {
n.logger.Warn("⚠️ The NATS Streaming PubSub component is deprecated due to the deprecation of NATS Server, and will be removed from Dapr 1.13")
m, err := parseNATSStreamingMetadata(metadata)
if err != nil {
return err