mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
refactor: remove vars
This commit is contained in:
parent
73398f0c7e
commit
b8955ef4f5
15
server.go
15
server.go
@ -29,18 +29,11 @@ type Server struct {
|
||||
}
|
||||
|
||||
func NewServer(opts ...Option) *Server {
|
||||
var (
|
||||
defaultShutdownTimeout = 5 * time.Second
|
||||
defaultConfig = config.Config()
|
||||
defaultLogger = log.Logger()
|
||||
defaultCtx = context.Background()
|
||||
)
|
||||
|
||||
inst := &Server{
|
||||
shutdownTimeout: defaultShutdownTimeout,
|
||||
ctx: defaultCtx,
|
||||
c: defaultConfig,
|
||||
l: defaultLogger,
|
||||
shutdownTimeout: 5 * time.Second,
|
||||
ctx: context.Background(),
|
||||
c: config.Config(),
|
||||
l: log.Logger(),
|
||||
}
|
||||
|
||||
for _, opt := range opts {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user