Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit c235f28

Browse files
author
Ahmed Ammar
committed
test
1 parent 7ee3aa7 commit c235f28

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

lib/logstash/inputs/dynamodb.rb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,20 @@ def register
184184
def run(logstash_queue)
185185
begin
186186
run_with_catch(logstash_queue)
187+
end
188+
end
187189

188-
@logger.warn("STOPPING!")
189-
190-
exit_threads
191-
until @queue.empty?
192-
@logger.warn("Flushing rest of events in logstash queue")
193-
event = @queue.pop()
194-
queue_event(@parser.parse_stream(event), logstash_queue, @host)
195-
end # until [email protected]?
190+
public
191+
def stop
192+
@logger.warn("STOPPING!")
196193

197-
close
198-
end
199-
end # def run(logstash_queue)
194+
exit_threads
195+
until @queue.empty?
196+
@logger.warn("Flushing rest of events in logstash queue")
197+
event = @queue.pop()
198+
queue_event(@parser.parse_stream(event), logstash_queue, @host)
199+
end # until [email protected]?
200+
end
200201

201202
# Starts KCL app in a background thread
202203
# Starts parallel scan if need be in a background thread

0 commit comments

Comments
 (0)