Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions managers/BootstrapManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type BootstrapData struct {
ProNotifications []structs.Notification
NFLGameplan structs.NFLGameplan
NFLDepthChart structs.NFLDepthChart
FaceData map[uint]structs.FaceDataResponse
}

type BootstrapDataTwo struct {
Expand Down Expand Up @@ -162,7 +161,7 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData {
}()
}
if len(proID) > 0 && proID != "0" {
wg.Add(3)
wg.Add(4)
go func() {
defer wg.Done()
mu.Lock()
Expand All @@ -180,6 +179,10 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData {
defer wg.Done()
proGameplan = GetNFLGameplanByTeamID(proID)
}()
go func() {
defer wg.Done()
proDepthChart = GetNFLDepthchartByTeamID(proID)
}()
}

wg.Wait()
Expand Down
Loading
Loading