FileParser::*#event_line -> #event_read
This commit is contained in:
parent
f370dcf52d
commit
49b31f2333
|
@ -7,7 +7,7 @@ module LogAn
|
|||
@sid = sid
|
||||
end
|
||||
|
||||
def event_line line, sock
|
||||
def event_read line, sock
|
||||
cmd, l = line.unpack 'na*'
|
||||
self[cmd].call( l, sock) if self[cmd]
|
||||
end
|
||||
|
|
|
@ -109,7 +109,7 @@ class LogAn::Inc::Server < ::Select::Server
|
|||
def event_cmd cmd
|
||||
sid, line = cmd.unpack 'Na*'
|
||||
fp = sid == 0 ? @sid0 : @config[:fileparser][sid]
|
||||
fp.event_line line, self if fp
|
||||
fp.event_read line, self if fp
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue