We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac6a4b8 commit 70ed56dCopy full SHA for 70ed56d
lib/filewatch/read_mode/handlers/read_file.rb
@@ -4,11 +4,8 @@ module FileWatch module ReadMode module Handlers
4
class ReadFile < Base
5
def handle_specifically(watched_file)
6
if open_file(watched_file)
7
- add_or_update_sincedb_collection(watched_file) unless sincedb_collection.member?(watched_file.sincedb_key)
8
- if sincedb_collection.member?(watched_file.sincedb_key)
9
- previous_pos = sincedb_collection.find(watched_file).position
10
- watched_file.file_seek([watched_file.bytes_read, previous_pos].max)
11
- end
+ add_or_update_sincedb_collection(watched_file)
+ watched_file.file_seek(watched_file.bytes_read)
12
loop do
13
break if quit?
14
loop_control = watched_file.loop_control_adjusted_for_stat_size
0 commit comments