Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
acoates-ms committed Dec 9, 2024
1 parent d2089a6 commit 4aaceba
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#pragma once

#include <ReactCommon/SchedulerPriority.h>
#include <react/debug/react_native_assert.h>
#include <chrono>
#include <glog/logging.h>

namespace facebook::react {

Expand All @@ -32,9 +32,9 @@ static inline SchedulerPriority fromRawValue(double value) {
case 5:
return SchedulerPriority::IdlePriority;
default:
react_native_assert(false && "Unsupported SchedulerPriority value");
return SchedulerPriority::NormalPriority;
LOG(FATAL) << "Unknown SchedulerPriority";
}
return SchedulerPriority::NormalPriority;
}

static inline std::chrono::milliseconds timeoutForSchedulerPriority(
Expand All @@ -51,9 +51,9 @@ static inline std::chrono::milliseconds timeoutForSchedulerPriority(
case SchedulerPriority::IdlePriority:
return std::chrono::minutes(5);
default:
react_native_assert(false && "Unsupported SchedulerPriority value");
return std::chrono::seconds(5);
LOG(FATAL) << "Unknown SchedulerPriority";
}
return std::chrono::seconds(5);
}

} // namespace facebook::react

0 comments on commit 4aaceba

Please sign in to comment.