Skip to content

Commit

Permalink
min. wait time is 1 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
monnand committed Jun 29, 2014
1 parent 0d7b936 commit aa8d278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
var uniqushPushConfFlags = flag.String("config", "/etc/uniqush/uniqush-push.conf", "Config file path")
var uniqushPushShowVersionFlag = flag.Bool("version", false, "Version info")

var uniqushPushVersion = "uniqush-push 1.5.2a5"
var uniqushPushVersion = "uniqush-push 1.5.2"

func installPushSrvices() {
InstallGCM()
Expand Down
6 changes: 3 additions & 3 deletions pushbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
package main

import (
"sync"
"time"
. "github.com/uniqush/log"
. "github.com/uniqush/uniqush-push/db"
. "github.com/uniqush/uniqush-push/push"
"sync"
"time"
)

type PushBackEnd struct {
Expand Down Expand Up @@ -111,7 +111,7 @@ func (self *PushBackEnd) fixError(reqId string, event error, logger Logger, afte
if sub, ok = err.Destination.FixedData["subscriber"]; !ok {
return nil
}
if after <= 0*time.Second {
if after <= 1*time.Second {
after = 5 * time.Second
}
if after > 1*time.Minute {
Expand Down

0 comments on commit aa8d278

Please sign in to comment.