Skip to content

Commit

Permalink
fix: vasedb http server port config.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Sep 10, 2023
1 parent fd74e54 commit d65827c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type HttpServer struct {
http.Server
shutdown chan struct{}
closed int32
*conf.ServerConfig
Port int32
}

// New 创建一个新的 HTTP 服务器
Expand All @@ -36,8 +36,8 @@ func New(opt *conf.ServerConfig) *HttpServer {
WriteTimeout: 3 * time.Second,
ReadTimeout: 3 * time.Second,
},
ServerConfig: opt,
shutdown: make(chan struct{}),
Port: opt.Port,
shutdown: make(chan struct{}),
}

atomic.StoreInt32(&hs.closed, 0)
Expand Down

0 comments on commit d65827c

Please sign in to comment.