Skip to content

Commit

Permalink
tiny clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaut committed Apr 23, 2014
1 parent 1bf07ce commit dba6891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gearmand.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func main() {
flag.Parse()
gearmand.PublishCmdline()
gearmand.RegisterCoreDump(*path)
log.SetLevelByString("debug")
log.SetLevelByString("warning")
//log.SetHighlighting(false)
runtime.GOMAXPROCS(1)
if *storage == "redis" {
Expand Down
8 changes: 2 additions & 6 deletions server/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ type Client struct {
}

func (self *Session) Send(data []byte) bool {
select {
case self.in <- data:
return true
default:
return false
}
self.in <- data
return true
}

func queueingWriter(in, out chan []byte) {
Expand Down

0 comments on commit dba6891

Please sign in to comment.