Conversation
e1a4d1b to
8192431
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #117 +/- ##
==========================================
- Coverage 86.24% 86.23% -0.01%
==========================================
Files 50 52 +2
Lines 923 966 +43
==========================================
+ Hits 796 833 +37
- Misses 127 133 +6
Continue to review full report in Codecov by Sentry.
|
| end | ||
|
|
||
| maybe_remove_hls(state.hls_options, state.hls_dir) | ||
| unless is_nil(hls_options.s3), do: upload_to_s3(hls_dir, room_id, hls_options.s3) |
There was a problem hiding this comment.
Shouldn't that work?
| unless is_nil(hls_options.s3), do: upload_to_s3(hls_dir, room_id, hls_options.s3) | |
| if hls_options.s3, do: upload_to_s3(hls_dir, room_id, hls_options.s3) |
| defp wait_for_folder(hls_dir, milliseconds) do | ||
| if File.exists?(hls_dir) do | ||
| :ok | ||
| else | ||
| Process.sleep(100) | ||
| wait_for_folder(hls_dir, milliseconds - 100) | ||
| end | ||
| end |
There was a problem hiding this comment.
Do we really need this? Couldn't we rely on some notifications etc?
There was a problem hiding this comment.
Element responsible for creating this folder is HLS endpoint so this is a tough one. I will look at it again.
There was a problem hiding this comment.
It's impossible right now because file creation has to happen before engine termination
| defp remove_hls(hls_dir, room_id) do | ||
| File.rm_rf!(hls_dir) | ||
| Logger.info("Remove hls from local memory, room: #{inspect(room_id)}") | ||
| Logger.info("Remove hls from local memory, room: #{room_id}") |
There was a problem hiding this comment.
Please write from a disk as local memory sounds like RAM
| options: options | ||
| } do | ||
| create_expect(0) | ||
| pid = start_process() |
There was a problem hiding this comment.
start_process, kill_process and create_expect are a bit generic names
Acknowledging the stipulations set forth: