Skip to content

Commit

Permalink
Stop using the file server for reading the BERT
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGagne committed Jul 3, 2024
1 parent 48e02a5 commit ef3a457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rig_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ new_timer(Delay, Msg, Pid) ->
reload({Name, Filename, DecoderFun, Opts}, Current, New) ->
try
Timestamp = os:timestamp(),
{ok, File} = file:open(Filename, [binary, read]),
{ok, File} = file:open(Filename, [binary, read, raw, read_ahead]),
KeyElement = ?LOOKUP(key_element, Opts, ?DEFAULT_KEY_ELEMENT),
Merge = ?LOOKUP(merger, Opts, undefined),
ok = rig_utils:read_file(File, DecoderFun, New, KeyElement, Merge),
Expand Down

0 comments on commit ef3a457

Please sign in to comment.