diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-22 23:01:20 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-22 23:01:20 (GMT) |
commit | d78058f0a80c4dc8e5b5f8a1300d7960bf93a078 (patch) | |
tree | 2a0fdddf29594f435cc6341f654f0974d595ff90 | |
parent | 87767fb705b253dffb2d88b44ae082302935bd0e (diff) |
rddb channels are now buffered
-rw-r--r-- | rddb.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -339,11 +339,11 @@ func NewRdDb(conf *Config) (db *RdDb, err error) { db.quit = make(chan bool) db.done = make(chan bool) db.password_cache = make(map[string]string) - db.getPasswordChan = make(chan getPasswordRequest) - db.getGroupOfCartChan = make(chan getGroupOfCartRequest) - db.getShowInfoChan = make(chan getShowInfoRequest) - db.checkMusicGroupChan = make(chan checkMusicGroupRequest) - db.getMusicInfoChan = make(chan getMusicInfoRequest) + db.getPasswordChan = make(chan getPasswordRequest, 10) + db.getGroupOfCartChan = make(chan getGroupOfCartRequest, 10) + db.getShowInfoChan = make(chan getShowInfoRequest, 10) + db.checkMusicGroupChan = make(chan checkMusicGroupRequest, 10) + db.getMusicInfoChan = make(chan getMusicInfoRequest, 10) if err = db.init(conf); err != nil { return |