Authd: updated to the latest ipc.cr version (0.5.2).

This commit is contained in:
Philippe PITTOLI 2020-02-06 10:20:57 +01:00
parent 353443cd13
commit fb4a1a2303

View File

@ -131,7 +131,7 @@ class AuthD::Response
def self.from_ipc(message : IPC::Message) : Response?
payload = String.new message.payload
type = Type.new message.type.to_i
type = Type.new message.utype.to_i
requests.find(&.type.==(type)).try &.from_json(payload)
rescue e : JSON::ParseException
@ -303,7 +303,7 @@ class AuthD::Request
def self.from_ipc(message : IPC::Message) : Request?
payload = String.new message.payload
type = Type.new message.type.to_i
type = Type.new message.utype.to_i
requests.find(&.type.==(type)).try &.from_json(payload)
rescue e : JSON::ParseException