Skip to content
Merged
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
17 changes: 16 additions & 1 deletion managers/BootstrapManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ type BootstrapDataThree struct {
CollegeDepthChartMap map[uint]structs.CollegeTeamDepthChart
FreeAgentOffers []structs.FreeAgencyOffer
WaiverWireOffers []structs.NFLWaiverOffer
FreeAgents []structs.NFLPlayer
WaiverPlayers []structs.NFLPlayer
ProNews []structs.NewsLog
NFLDepthChartMap map[uint]structs.NFLDepthChart
ContractMap map[uint]structs.NFLContract
Expand Down Expand Up @@ -333,6 +335,8 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree {
proDepthChartMap map[uint]structs.NFLDepthChart
contractMap map[uint]structs.NFLContract
extensionMap map[uint]structs.NFLExtensionOffer
freeAgents []structs.NFLPlayer
waiverPlayers []structs.NFLPlayer
freeAgentoffers []structs.FreeAgencyOffer
waiverOffers []structs.NFLWaiverOffer
)
Expand All @@ -356,7 +360,7 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree {
}

if len(proID) > 0 && proID != "0" {
wg.Add(6)
wg.Add(8)

go func() {
defer wg.Done()
Expand Down Expand Up @@ -389,6 +393,15 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree {
defer wg.Done()
extensionMap = GetExtensionMap()
}()
go func() {
defer wg.Done()
freeAgents = GetAllFreeAgents()
}()

go func() {
defer wg.Done()
waiverPlayers = GetAllWaiverWirePlayers()
}()

wg.Wait()
}
Expand All @@ -402,6 +415,8 @@ func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree {
NFLDepthChartMap: proDepthChartMap,
ContractMap: contractMap,
ExtensionMap: extensionMap,
FreeAgents: freeAgents,
WaiverPlayers: waiverPlayers,
}
}

Expand Down