This commit is contained in:
Tim Zhang 2026-05-07 11:08:21 -07:00 committed by GitHub
commit c931c24f84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -236,7 +236,7 @@ func WithPort(port int) Option {
}
}
func NewServer(addr string, opts ...Option) ( *http.Server, error) {
func NewServer(addr string, opts ...Option) (*http.Server, error) {
var options options
for _, opt := range opts {
err := opt(&options)

View file

@ -243,7 +243,7 @@ func WithPort(port int) Option {
}
}
func NewServer(addr string, opts ...Option) ( *http.Server, error) {
func NewServer(addr string, opts ...Option) (*http.Server, error) {
var options options
for _, opt := range opts {
err := opt(&options)
@ -2036,4 +2036,4 @@ ticker = time.NewTicker(1000 * time.Nanosecond)
???+ info "要約"
Docker と Kubernetes にデプロイする際の CPU スロットリングを回避するには、Go言語が CFS 対応ではないことに留意してください。
Docker と Kubernetes にデプロイする際の CPU スロットリングを回避するには、Go言語が CFS 対応ではないことに留意してください。

View file

@ -233,7 +233,7 @@ func WithPort(port int) Option {
}
}
func NewServer(addr string, opts ...Option) ( *http.Server, error) {
func NewServer(addr string, opts ...Option) (*http.Server, error) {
var options options
for _, opt := range opts {
err := opt(&options)