From d03a5d7f6e5530e7b0504e491f36f2caf596302f Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Tue, 13 Oct 2015 17:02:59 +0200 Subject: Move timeouts to separate include file --- src/util.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util.erl') 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) -> -- cgit v1.1