Add NTP service

This commit is contained in:
世界
2023-02-21 16:09:06 +08:00
parent f26785c0ba
commit 611d6bbfc5
26 changed files with 186 additions and 26 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ func ContextWithOverrideLevel(ctx context.Context, level Level) context.Context
func OverrideLevelFromContext(origin Level, ctx context.Context) Level {
level, loaded := ctx.Value((*overrideLevelKey)(nil)).(Level)
if !loaded || origin < level {
if !loaded || origin > level {
return origin
}
return level