Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ clean:

.PHONY: run
run: generate ### Build and run server.
go build -o tmp-gomud.exe
make ungenerate
./tmp-gomud.exe
@go run .

.PHONY: run-docker
run-docker: ### Build and run server in docker.
Expand Down
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ var (

func main() {

serverStartTime := time.Now()

// Capture panic and write msg/stack to logs
defer func() {
if r := recover(); r != nil {
Expand Down Expand Up @@ -243,8 +245,8 @@ func main() {

go worldManager.InputWorker(workerShutdownChan, &wg)
go worldManager.MainWorker(workerShutdownChan, &wg)
//go worldManager.MaintenanceWorker(workerShutdownChan, &wg)
//go worldManager.GameTickWorker(workerShutdownChan, &wg)

mudlog.Info("Server Ready", "Time Taken", time.Since(serverStartTime))

// block until a signal comes in
<-sigChan
Expand Down
Loading