diff --git a/upptst/LZ4Progress/LZ4Progress.cpp b/upptst/LZ4Progress/LZ4Progress.cpp index f536e4d10..6c4f4abb4 100644 --- a/upptst/LZ4Progress/LZ4Progress.cpp +++ b/upptst/LZ4Progress/LZ4Progress.cpp @@ -9,8 +9,9 @@ CONSOLE_APP_MAIN StdLogSetup(LOG_COUT|LOG_FILE); String data = LoadFile("C:/xxx/xxx/upp-x11-src-9041.tar"); - auto cp = [](int64 pos, int64 size) -> bool { DLOG("Compress: " << pos << " " << size); return false; }; - auto dp = [](int64 pos, int64 size) -> bool { DLOG("DeCompress: " << pos << " " << size); return false; }; + EventGate cp, dp; + cp << [](int64 pos, int64 size) -> bool { DLOG("Compress: " << pos << " " << size); return false; }; + dp << [](int64 pos, int64 size) -> bool { DLOG("DeCompress: " << pos << " " << size); return false; }; { String c = ZstdCompress(data, cp);