From 0dde68905673af0a79793833e847dcb6983db7c8 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Fri, 10 Feb 2023 11:54:34 +0100 Subject: [PATCH] Fix filestoraged: s/event/event.type/. Can now exchange files. --- src/server/main.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/main.cr b/src/server/main.cr index 87779dc..ca567b2 100644 --- a/src/server/main.cr +++ b/src/server/main.cr @@ -188,7 +188,7 @@ class FileStorage::Service < IPC self.loop do |event| begin - case event + case event.type when LibIPC::EventType::Timer Baguette::Log.debug "LibIPC::EventType::Timer" if @print_timer @@ -229,7 +229,7 @@ class FileStorage::Service < IPC when LibIPC::EventType::MessageTx Baguette::Log.debug "LibIPC::EventType::MessageTx: #{event.fd}" else - Baguette::Log.warning "unhandled LibIPC event: #{event.class}" + Baguette::Log.warning "unhandled LibIPC event: #{event.type}" end rescue exception