From cd5959fe5ab04786cd5dee3cf09f725229ae7c7b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 17 Mar 2026 13:35:48 +0900 Subject: ext: isolate from container/std These are too general to belong in the container package. This targets the v0.4 release to reduce the wrapper maintenance burden. Signed-off-by: Ophestra --- hst/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hst/config.go') diff --git a/hst/config.go b/hst/config.go index 793cd786..da68ac26 100644 --- a/hst/config.go +++ b/hst/config.go @@ -6,7 +6,7 @@ import ( "strings" "hakurei.app/container/check" - "hakurei.app/container/std" + "hakurei.app/ext" ) // Config configures an application container. @@ -107,12 +107,12 @@ type Config struct { // Scheduling policy to set for the container. // // The zero value retains the current scheduling policy. - SchedPolicy std.SchedPolicy `json:"sched_policy,omitempty"` + SchedPolicy ext.SchedPolicy `json:"sched_policy,omitempty"` // Scheduling priority to set for the container. // // The zero value implies the minimum priority of the current SchedPolicy. // Has no effect if SchedPolicy is zero. - SchedPriority std.Int `json:"sched_priority,omitempty"` + SchedPriority ext.Int `json:"sched_priority,omitempty"` // High level configuration applied to the underlying [container]. Container *ContainerConfig `json:"container"` @@ -153,7 +153,7 @@ func (config *Config) Validate() error { Msg: "identity " + strconv.Itoa(config.Identity) + " out of range"} } - if config.SchedPolicy < 0 || config.SchedPolicy > std.SCHED_LAST { + if config.SchedPolicy < 0 || config.SchedPolicy > ext.SCHED_LAST { return &AppError{Step: "validate configuration", Err: ErrSchedPolicyBounds, Msg: "scheduling policy " + strconv.Itoa(int(config.SchedPolicy)) + -- cgit v1.3.1