|
@ -29,7 +29,7 @@ func (k *GoCDKPubSubInput) GetName() string { |
|
|
|
|
|
|
|
|
func (k *GoCDKPubSubInput) Initialize(config util.Configuration) error { |
|
|
func (k *GoCDKPubSubInput) Initialize(config util.Configuration) error { |
|
|
subURL := config.GetString("sub_url") |
|
|
subURL := config.GetString("sub_url") |
|
|
glog.V(0).Infof("notification.gocdk_pub_sub.topic_url: %v", subURL) |
|
|
|
|
|
|
|
|
glog.V(0).Infof("notification.gocdk_pub_sub.sub_url: %v", subURL) |
|
|
sub, err := pubsub.OpenSubscription(context.Background(), subURL) |
|
|
sub, err := pubsub.OpenSubscription(context.Background(), subURL) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|