summaryrefslogtreecommitdiff
path: root/courses.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--courses.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/courses.go b/courses.go
index ccb5313..45e6fd9 100644
--- a/courses.go
+++ b/courses.go
@@ -53,8 +53,7 @@ type courseT struct {
Group courseGroupT
Teacher string
Location string
- Usems map[string](*usemT)
- UsemsLock sync.RWMutex
+ Usems sync.Map /* string, *usemT */
}
const (
@@ -145,9 +144,7 @@ func setupCourses() error {
}
break
}
- currentCourse := courseT{
- Usems: make(map[string]*usemT),
- } //exhaustruct:ignore
+ currentCourse := courseT{} //exhaustruct:ignore
err = rows.Scan(
&currentCourse.ID,
&currentCourse.Max,