wip: update store. references to storage. in server.go

This commit is contained in:
Michael Hohn
2024-05-21 11:45:47 -07:00
committed by =Michael Hohn
parent 873339ff06
commit 4269bacf2a
2 changed files with 15 additions and 17 deletions

View File

@@ -190,6 +190,12 @@ func GetJobInfo(js co.JobSpec) co.JobInfo {
return info[js]
}
func SetJobInfo(js co.JobSpec, ji co.JobInfo) {
mutex.Lock()
defer mutex.Unlock()
info[js] = ji
}
func GetStatus(sessionid int, orl co.OwnerRepo) co.Status {
mutex.Lock()
defer mutex.Unlock()