Skip to content

Commit

Permalink
Fix lint and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
syeopite committed Feb 26, 2025
1 parent fe4fa04 commit adcdb8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/invidious.cr
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Kemal.config.app_name = "Invidious"

Kemal.run do |config|
if socket_binding = CONFIG.socket_binding
File.delete?(socket_binding.path)
File.delete?(socket_binding.path)
# Create a socket and set its desired permissions
server = UNIXServer.new(socket_binding.path)
perms = socket_binding.permissions.to_i(base: 8)
Expand Down
4 changes: 2 additions & 2 deletions src/invidious/jobs/notification_job.cr
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Invidious::Jobs::NotificationJob < Invidious::Jobs::BaseJob
hash[key] = Set(VideoNotification).new
}
)
notify_mutex = Mutex.new()
notify_mutex = Mutex.new

# fiber to locally cache all incoming notifications (from pubsub webhooks and refresh channels job)
spawn do
Expand Down Expand Up @@ -71,7 +71,7 @@ class Invidious::Jobs::NotificationJob < Invidious::Jobs::BaseJob

LOGGER.info("NotificationJob: updating channel #{channel_id} with #{notifications.size} notifications")
if CONFIG.enable_user_notifications
video_ids = notifications.map { |n| n.video_id }
video_ids = notifications.map(&.video_id)
Invidious::Database::Users.add_multiple_notifications(channel_id, video_ids)
PG_DB.using_connection do |conn|
notifications.each do |n|
Expand Down

0 comments on commit adcdb8c

Please sign in to comment.