diff options
author | Kyo Nguyen <canhlinh.lienson@gmail.com> | 2016-09-19 19:30:41 +0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-09-19 08:30:41 -0400 |
commit | 2ca751febff968ddad65a7f55bffde631392c093 (patch) | |
tree | 3532d88bf33b1a78e2327c0e074a0ea1d669d4e1 /store/sql_license_store.go | |
parent | 33eda94db33417c839499b1b3e0330a4fdd1de19 (diff) | |
download | chat-2ca751febff968ddad65a7f55bffde631392c093.tar.gz chat-2ca751febff968ddad65a7f55bffde631392c093.tar.bz2 chat-2ca751febff968ddad65a7f55bffde631392c093.zip |
Fix leaking goroutines in store calls (#3993). (#4021)
Diffstat (limited to 'store/sql_license_store.go')
-rw-r--r-- | store/sql_license_store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_license_store.go b/store/sql_license_store.go index 73faad8b9..6e4cb98c8 100644 --- a/store/sql_license_store.go +++ b/store/sql_license_store.go @@ -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{} |