mirror of
https://github.com/pikami/cosmium.git
synced 2026-11-04 23:45:50 +00:00
Improved concurrency handling
This commit is contained in:
1 parent
66ea859f34
commit
e5ddc143f0
9 files changed
+117
-3
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package repositorymodels
|
||||
|
||||
import "sync"
|
||||
|
||||
type Database struct {
|
||||
ID string `json:"id"`
|
||||
TimeStamp int64 `json:"_ts"`
|
||||
@@ -101,6 +103,8 @@ type PartitionKeyRange struct {
|
||||
}
|
||||
|
||||
type State struct {
|
||||
sync.RWMutex
|
||||
|
||||
// Map databaseId -> Database
|
||||
Databases map[string]Database `json:"databases"`
|
||||
|
||||
|
||||
Reference in new issue
Block a user