Skip to content

Commit c2cc768

Browse files
cleaned up models (models will now only be used for internal data structures while config becomes a seperate package). Linted the code.
1 parent 55ee356 commit c2cc768

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

cmd/laclm/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func run(ctx context.Context) error {
105105
routes.RegisterRoutes(mux)
106106

107107
server := &http.Server{
108-
Addr: fmt.Sprintf("%s:%s",
108+
Addr: fmt.Sprintf("%s:%d",
109109
config.BackendConfig.Server.Host,
110110
config.BackendConfig.Server.Port,
111111
),

config/loader.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ func LoadConfig(path string) {
3131
zap.Error(err),
3232
)
3333
}
34-
35-
BackendConfig.Normalize()
3634
}
3735

3836
/* loads environment variables */

init/init.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package init

internal/models/normalize.go

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package sessionmanager

0 commit comments

Comments
 (0)