Skip to content

Commit

Permalink
refactor: rename var
Browse files Browse the repository at this point in the history
auth is a pkg name, should avoid been clouded
  • Loading branch information
morya authored Aug 25, 2024
1 parent 4df4737 commit a755327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ func serveCmd(version string) cli.Command {
log.Fatal().Str("file", conf.UsersFile).Err(err).Msg("While loading users file")
}

auth, err := turn.Start(conf)
tServer, err := turn.Start(conf)
if err != nil {
log.Fatal().Err(err).Msg("could not start turn server")
}

rooms := ws.NewRooms(auth, users, conf)
rooms := ws.NewRooms(tServer, users, conf)

go rooms.Start()

Expand Down

0 comments on commit a755327

Please sign in to comment.