mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
c61a4000d8
Implement activity.Scheduler to serialize and limit the number of calls on the activity service. This way we protect form inefficient parallel queries and easy support async and rate limiting based on the API requirements. Refactor the activity APIs async and use the Scheduler for managing the activity service calls configured with one of the two rules: cancel ignore. Updates status-desktop #11170
36 lines
1016 B
Makefile
36 lines
1016 B
Makefile
SOURCE = parser.go
|
|
CONTAINER = jsonparser
|
|
SOURCE_PATH = /go/src/github.com/buger/jsonparser
|
|
BENCHMARK = JsonParser
|
|
BENCHTIME = 5s
|
|
TEST = .
|
|
DRUN = docker run -v `pwd`:$(SOURCE_PATH) -i -t $(CONTAINER)
|
|
|
|
build:
|
|
docker build -t $(CONTAINER) .
|
|
|
|
race:
|
|
$(DRUN) --env GORACE="halt_on_error=1" go test ./. $(ARGS) -v -race -timeout 15s
|
|
|
|
bench:
|
|
$(DRUN) go test $(LDFLAGS) -test.benchmem -bench $(BENCHMARK) ./benchmark/ $(ARGS) -benchtime $(BENCHTIME) -v
|
|
|
|
bench_local:
|
|
$(DRUN) go test $(LDFLAGS) -test.benchmem -bench . $(ARGS) -benchtime $(BENCHTIME) -v
|
|
|
|
profile:
|
|
$(DRUN) go test $(LDFLAGS) -test.benchmem -bench $(BENCHMARK) ./benchmark/ $(ARGS) -memprofile mem.mprof -v
|
|
$(DRUN) go test $(LDFLAGS) -test.benchmem -bench $(BENCHMARK) ./benchmark/ $(ARGS) -cpuprofile cpu.out -v
|
|
$(DRUN) go test $(LDFLAGS) -test.benchmem -bench $(BENCHMARK) ./benchmark/ $(ARGS) -c
|
|
|
|
test:
|
|
$(DRUN) go test $(LDFLAGS) ./ -run $(TEST) -timeout 10s $(ARGS) -v
|
|
|
|
fmt:
|
|
$(DRUN) go fmt ./...
|
|
|
|
vet:
|
|
$(DRUN) go vet ./.
|
|
|
|
bash:
|
|
$(DRUN) /bin/bash
|