update
This commit is contained in:
2
Makefile
2
Makefile
@@ -29,7 +29,7 @@ LABS=" lab1 lab2a lab2b lab2c lab2d lab3a lab3b lab4a lab4b "
|
||||
if test "$$line" != "yes" ; then echo "Giving up submission"; exit; fi; \
|
||||
if test `stat -c "%s" "$@-handin.tar.gz" 2>/dev/null || stat -f "%z" "$@-handin.tar.gz"` -ge 20971520 ; then echo "File exceeds 20MB."; exit; fi; \
|
||||
cat api.key | tr -d '\n' > .api.key.trimmed ; \
|
||||
curl -F file=@$@-handin.tar.gz -F "key=<.api.key.trimmed" \
|
||||
curl --silent --fail --show-error -F file=@$@-handin.tar.gz -F "key=<.api.key.trimmed" \
|
||||
https://6824.scripts.mit.edu/2021/handin.py/upload > /dev/null || { \
|
||||
echo ; \
|
||||
echo "Submit seems to have failed."; \
|
||||
|
||||
@@ -269,7 +269,6 @@ func (cfg *config) start1(i int, applier func(int, chan ApplyMsg)) {
|
||||
cfg.mu.Unlock()
|
||||
|
||||
applyCh := make(chan ApplyMsg)
|
||||
go applier(i, applyCh)
|
||||
|
||||
rf := Make(ends, i, cfg.saved[i], applyCh)
|
||||
|
||||
@@ -277,6 +276,8 @@ func (cfg *config) start1(i int, applier func(int, chan ApplyMsg)) {
|
||||
cfg.rafts[i] = rf
|
||||
cfg.mu.Unlock()
|
||||
|
||||
go applier(i, applyCh)
|
||||
|
||||
svc := labrpc.MakeService(rf)
|
||||
srv := labrpc.MakeServer()
|
||||
srv.AddService(svc)
|
||||
|
||||
Reference in New Issue
Block a user