Skip to content

Commit

Permalink
Fix kafka format event (#71)
Browse files Browse the repository at this point in the history
* avoid function naming conflict
  • Loading branch information
tanguyvda authored and kduret committed Feb 14, 2023
1 parent 0516189 commit d3784e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ end
-- EventQueue:format_event, build your own table with the desired information
-- @return true (boolean)
--------------------------------------------------------------------------------
function EventQueue:format_event()
function EventQueue:format_accepted_event()
local category = self.sc_event.event.category
local element = self.sc_event.event.element
local template = self.sc_params.params.format_template[category][element]
Expand Down Expand Up @@ -260,7 +260,7 @@ function write(event)

-- drop event if it is not validated
if queue.sc_event:is_valid_event() then
queue:format_event()
queue:format_accepted_event()
else
return true
end
Expand Down

0 comments on commit d3784e5

Please sign in to comment.