forked from mirror/ledisdb
add make fmt and format go code
This commit is contained in:
parent
926d082787
commit
f77438741d
3
Makefile
3
Makefile
|
@ -33,3 +33,6 @@ test_store:
|
|||
|
||||
test_rpl:
|
||||
$(GO) test --race -tags '$(GO_BUILD_TAGS)' ./rpl
|
||||
|
||||
fmt:
|
||||
go fmt ./...
|
|
@ -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{
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue