Docs, docs, docs!

This commit is contained in:
nemunaire 2018-05-12 01:08:37 +02:00
commit dcb67fba63
7 changed files with 38 additions and 2 deletions

View file

@ -13,8 +13,10 @@ import (
"srs.epita.fr/fic-server/settings"
)
// oneDeepSync ensure there is no more than one running deep sync.
var oneDeepSync sync.Mutex
// SyncDeep performs a recursive synchronisation: from themes to challenge items.
func SyncDeep(i Importer) (errs map[string][]string) {
oneDeepSync.Lock()
defer oneDeepSync.Unlock()