getting rid of channel blocking issue

This commit is contained in:
greg stone
2023-02-26 06:44:44 +00:00
parent 53c8bc73ce
commit b17af9df79
3 changed files with 8 additions and 7 deletions

View File

@@ -13,8 +13,8 @@ var (
var (
db *badger.DB
opts badger.Options
startupErrors = make(chan error)
isReady = make(chan bool)
startupErrors = make(chan error, 128)
isReady = make(chan bool, 1)
)
func CantStart() chan error {