This commit is contained in:
Xiang Li 2013-08-11 09:48:12 -07:00
parent 434b0045db
commit d3649d3254
4 changed files with 11 additions and 11 deletions

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"time"
"fmt" "fmt"
"time"
) )
type snapshotConf struct { type snapshotConf struct {
@ -15,7 +15,7 @@ type snapshotConf struct {
var snapConf *snapshotConf var snapConf *snapshotConf
func newSnapshotConf() *snapshotConf { func newSnapshotConf() *snapshotConf {
return &snapshotConf {time.Second*3, etcdStore.TotalWrites(), 20*1000} return &snapshotConf{time.Second * 3, etcdStore.TotalWrites(), 20 * 1000}
} }
func monitorSnapshot() { func monitorSnapshot() {