Этот коммит содержится в:
=Corey Hulen
2015-08-20 14:20:39 -07:00
родитель 8b3bbc5fb9
Коммит 3f0ec24dc1
3 изменённых файлов: 17 добавлений и 7 удалений

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

@@ -4,7 +4,9 @@
package store
import (
l4g "code.google.com/p/log4go"
"github.com/mattermost/platform/model"
"time"
)
type StoreResult struct {
@@ -17,6 +19,8 @@ type StoreChannel chan StoreResult
func Must(sc StoreChannel) interface{} {
r := <-sc
if r.Err != nil {
l4g.Close()
time.Sleep(time.Second)
panic(r.Err)
}