Add Twitter Binding deprecation notice
Signed-off-by: Bernd Verst <github@bernd.dev>
This commit is contained in:
parent
5cfd798095
commit
0ee01e0620
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue