Vladimir Zagainov 3499963205
Some checks failed
CI / lint (push) Successful in 11m11s
CI / test (push) Successful in 10m55s
CI / build (push) Failing after 5m36s
CI / docker (push) Has been skipped
fix: add per-hash mutex to prevent concurrent CAS writes
StoreFile now uses a per-hash sync.Mutex to prevent race conditions
when multiple workers (launcher fetcher or parallel uploads) write
the same file simultaneously. Duplicate writes are idempotent —
if another goroutine stored the file while we waited, return the
existing hash without re-writing.
2026-06-01 06:51:54 +03:00
2026-05-23 17:57:37 +03:00
2026-05-30 19:53:37 +03:00
2026-05-23 17:57:37 +03:00

MrixsCraft Server

Minecraft серверная часть на Go (net/http + PostgreSQL).

Сборка

go build -o mrixscraft-server ./cmd/server

Запуск

export SERVER_PORT=8080
export DATABASE_URL="postgres://user:pass@localhost:5432/mrixscraft"

go run ./cmd/server

Переменные окружения

Переменная Описание По умолчанию
SERVER_PORT Порт HTTP-сервера 8080
DATABASE_URL DSN PostgreSQL
Description
No description provided
Readme 287 KiB
Languages
Go 65.6%
HTML 34%
Dockerfile 0.4%