Simon 2a8c4b90d7 added readme | 2 سال پیش | |
---|---|---|
.vscode | 2 سال پیش | |
c | 2 سال پیش | |
client | 2 سال پیش | |
data | 2 سال پیش | |
follower | 2 سال پیش | |
gui | 2 سال پیش | |
leader | 2 سال پیش | |
lib | 2 سال پیش | |
.gitignore | 2 سال پیش | |
README.md | 2 سال پیش | |
comm.go | 2 سال پیش | |
go.mod | 2 سال پیش | |
go.sum | 2 سال پیش | |
index.html | 2 سال پیش | |
main.js | 2 سال پیش | |
package-lock.json | 2 سال پیش |
To execute you need to run follower.go, wait for print "start leader", then run leader.go, wait for 1sec and then start client.go The parameters used, like number of clients or the write database size, are global variables in the respective files.