Add Twitter Binding deprecation notice

Signed-off-by: Bernd Verst <github@bernd.dev>
This commit is contained in:
Bernd Verst 2023-02-03 12:58:05 -08:00
parent 5cfd798095
commit 0ee01e0620
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ func NewTwitter(logger logger.Logger) bindings.InputOutputBinding {
// Init initializes the Twitter binding.
func (t *Binding) Init(metadata bindings.Metadata) error {
t.logger.Warnf("DEPRECATION NOTICE: Component bindings.twitter has been deprecated and will be removed in a future Dapr release.")
ck, f := metadata.Properties["consumerKey"]
if !f || ck == "" {
return fmt.Errorf("consumerKey not set")