add make fmt and format go code

This commit is contained in:
siddontang 2015-02-05 09:39:18 +08:00
parent 926d082787
commit f77438741d
3 changed files with 5 additions and 2 deletions

View File

@ -33,3 +33,6 @@ test_store:
test_rpl:
$(GO) test --race -tags '$(GO_BUILD_TAGS)' ./rpl
fmt:
go fmt ./...

View File

@ -1,4 +1,4 @@
//This file was generated by .tools/generate_commands.py on Tue Feb 03 2015 14:21:53 +0800
//This file was generated by .tools/generate_commands.py on Tue Feb 03 2015 14:21:53 +0800
package main
var helpCommands = [][]string{

View File

@ -139,7 +139,7 @@ func (c *ttlChecker) setNextCheckTime(when int64, force bool) {
c.Lock()
if force {
c.nc = when
} else if c.nc > when {
} else if c.nc > when {
c.nc = when
}
c.Unlock()