diff options
Diffstat (limited to 'src/util.erl')
-rw-r--r-- | src/util.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.erl b/src/util.erl index af78b93..8a8152a 100644 --- a/src/util.erl +++ b/src/util.erl @@ -6,6 +6,8 @@ check_error/3, write_tempfile_and_rename/3, spawn_and_wait/1, parallel_map/3]). +-include("timeouts.hrl"). + -spec tempfilename(string()) -> string(). tempfilename(Base) -> {MegaSecs, Secs, MicroSecs} = now(), @@ -23,7 +25,7 @@ fsync(Paths, Timeout) -> end. fsync(Paths) -> - fsync(Paths, 5000). + fsync(Paths, ?UTIL_FSYNC_DEFAULT_TIMEOUT). -spec exit_with_error(atom(), atom(), string()) -> no_return(). exit_with_error(Operation, Error, ErrorMessage) -> |