Commit Graph

13 Commits

Author SHA1 Message Date
Pascal Wengerter 133682e6b9 Add formatting results 2022-05-19 10:36:23 +02:00
A.Unger 72630c3291 prevent race condition on starting an already running service 2021-07-02 16:05:04 +02:00
Wilko Nienhaus 011c6b76ee move uint64s to beginning of struct to ensure they are 64-bit aligned
See https://golang.org/pkg/sync/atomic/#pkg-note-BUG for reference:
"The first word in (...) an allocated struct (...) can be relied up to
be 64-bit aligned"

This fixes an "unaligned 64-bit atomic operation" panic on 32-bit ARM,
(in my case a Raspberry Pi 4, running 32-bit Raspbian). The panic
happens (at least) during the first login after a service (re)start.
2021-04-02 10:35:29 +03:00
A.Unger 6054e6b4a1 sequential access to viper config (still broken) + add delayed execution to storage-sharing 2021-03-10 12:26:14 +01:00
A.Unger 4e37d4a2f6 update commands when running in supervised mode 2021-03-10 11:10:46 +01:00
David Christofas a22b7d6844 resolve linter issues 2021-02-24 16:24:36 +01:00
Florian Schade 03c1416a4a update roles cache to use sync.cache
add tests for roles cache
add changelog
use strings in sync cache tests
2021-01-21 00:04:25 +01:00
Florian Schade 873fbcb557 rename NRWMutex to NameRWMutex
update changelog
2021-01-19 23:23:41 +01:00
Florian Schade 4f80541b9f increase test timing cor sync.cache 2021-01-19 23:23:41 +01:00
Florian Schade af870e005e add more tests and benchmark for cache
refactor cache to use atomic uint
2021-01-19 23:23:41 +01:00
Florian Schade f13530425a move cache to sync package
rollback indexer map
use sync.pool for cache entries
add tests for cache
remove main locks from nrwmutex and use sync.map and sync.pool instead
bump dockerfile go version
2021-01-19 23:23:41 +01:00
Florian Schade b81156fc57 add comments to NRWMutex 2021-01-19 23:23:41 +01:00
Florian Schade a02fb890f7 remove locking from accounts service
add a cached named rwlock pkg
use sync.map in the cache pkg
use named rwlock in indexer pkg
use sync.map in indexer pkg
remove husky
2021-01-19 23:23:41 +01:00