Fix leaking goroutines in store calls (#3993). (#4021)

Этот коммит содержится в:
Kyo Nguyen
2016-09-19 19:30:41 +07:00
коммит произвёл Joram Wilander
родитель 33eda94db3
Коммит 2ca751febf
16 изменённых файлов: 191 добавлений и 188 удалений

Просмотреть файл

@@ -28,7 +28,7 @@ func (ls SqlLicenseStore) CreateIndexesIfNotExists() {
func (ls SqlLicenseStore) Save(license *model.LicenseRecord) StoreChannel {
storeChannel := make(StoreChannel)
storeChannel := make(StoreChannel, 1)
go func() {
result := StoreResult{}
@@ -58,7 +58,7 @@ func (ls SqlLicenseStore) Save(license *model.LicenseRecord) StoreChannel {
func (ls SqlLicenseStore) Get(id string) StoreChannel {
storeChannel := make(StoreChannel)
storeChannel := make(StoreChannel, 1)
go func() {
result := StoreResult{}