Skip to content

Commit

Permalink
Update Event Subscriber due to changes in our Subserver PR (#42)
Browse files Browse the repository at this point in the history
* Removed Icalia::Event::Notification

* Renamed the subscriber auto subscribe method, due to changes in the Subserver PR

See:
- lifechurch/subserver#17
- lifechurch/subserver@8d2ebbe
- lifechurch/subserver@a59caef
  • Loading branch information
vovimayhem authored Mar 8, 2020
1 parent 20bed71 commit 3174177
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 77 deletions.
1 change: 0 additions & 1 deletion event-notification/lib/icalia-sdk-event-notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module Icalia
module Event
autoload :Publisher, 'icalia/event/publisher'
autoload :Subscriber, 'icalia/event/subscriber'
autoload :Notification, 'icalia/event/notification'
autoload :TopicMessageProcessing, 'icalia/event/topic_message_processing'

mattr_reader :deferred_publishing, default: true
Expand Down
75 changes: 0 additions & 75 deletions event-notification/lib/icalia/event/notification.rb

This file was deleted.

2 changes: 1 addition & 1 deletion event-notification/lib/icalia/event/subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def subscription_name
"-#{topic_name}"
end

def ensure_subscription_exists
def auto_subscribe
client = Subserver::Pubsub.client
topic = client.topic(topic_name) || client.create_topic(topic_name)

Expand Down

0 comments on commit 3174177

Please sign in to comment.