Skip to content

Commit

Permalink
Turn off async Notification fetching
Browse files Browse the repository at this point in the history
This was causing all sorts of SSL errors. Instead of trying to figure
out what is causing those to come in, make the calls sync instead. It
is still pretty snappy. I'll likely come back and look into this in
the future.
  • Loading branch information
geolessel committed Nov 29, 2018
1 parent c8cb635 commit 7834798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/notification.cr
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class Notification
end

def self.fetch_async
spawn do
# spawn do
Notification.fetch
end
Fiber.yield
# end
# Fiber.yield
end

def self.mark_read_for_card(card : CardDetail)
Expand Down

0 comments on commit 7834798

Please sign in to comment.