mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-13 01:42:27 +08:00
fix
This commit is contained in:
9
glide.lock
generated
9
glide.lock
generated
@@ -1,12 +1,12 @@
|
|||||||
hash: 4b70e76a2e830e97033c06d0e5a90c3199985ff5070bdf8364b1feca63d5caa5
|
hash: 4b70e76a2e830e97033c06d0e5a90c3199985ff5070bdf8364b1feca63d5caa5
|
||||||
updated: 2016-11-14T22:09:13.900837801+08:00
|
updated: 2016-11-16T21:02:51.442531751+08:00
|
||||||
imports:
|
imports:
|
||||||
- name: github.com/boj/redistore
|
- name: github.com/boj/redistore
|
||||||
version: fc113767cd6b051980f260d6dbe84b2740c46ab0
|
version: fc113767cd6b051980f260d6dbe84b2740c46ab0
|
||||||
- name: github.com/eiblog/blackfriday
|
- name: github.com/eiblog/blackfriday
|
||||||
version: c0ec111761ae784fe31cc076f2fa0e2d2216d623
|
version: c0ec111761ae784fe31cc076f2fa0e2d2216d623
|
||||||
- name: github.com/eiblog/utils
|
- name: github.com/eiblog/utils
|
||||||
version: 3352fddbea01fcfeeb8d903b72f3b84da9780525
|
version: 06c7dc24b885333250d26e34d2932d4a7cfa8b46
|
||||||
subpackages:
|
subpackages:
|
||||||
- logd
|
- logd
|
||||||
- mgo
|
- mgo
|
||||||
@@ -61,11 +61,8 @@ imports:
|
|||||||
- api
|
- api
|
||||||
- auth/qbox
|
- auth/qbox
|
||||||
- conf
|
- conf
|
||||||
|
- kodo
|
||||||
- kodocli
|
- kodocli
|
||||||
- name: qiniupkg.com/api.v7/conf
|
|
||||||
version: ad7023b87b2f5c169812da49fe44900be1c4e5c2
|
|
||||||
- name: qiniupkg.com/api.v7/kodo
|
|
||||||
version: ad7023b87b2f5c169812da49fe44900be1c4e5c2
|
|
||||||
- name: qiniupkg.com/x
|
- name: qiniupkg.com/x
|
||||||
version: f512abcf45ab4e2ba0fd4784c57b53d495997d66
|
version: f512abcf45ab4e2ba0fd4784c57b53d495997d66
|
||||||
subpackages:
|
subpackages:
|
||||||
|
|||||||
7
ping.go
7
ping.go
@@ -19,7 +19,7 @@ type Pinger interface {
|
|||||||
// http://<your-hub-name>.superfeedr.com/
|
// http://<your-hub-name>.superfeedr.com/
|
||||||
type superfeedr struct{}
|
type superfeedr struct{}
|
||||||
|
|
||||||
func (_ *superfeedr) PingFunc(slug string) {
|
func (*superfeedr) PingFunc(slug string) {
|
||||||
if setting.Conf.FeedrURL == "" {
|
if setting.Conf.FeedrURL == "" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -37,8 +37,8 @@ func (_ *superfeedr) PingFunc(slug string) {
|
|||||||
logd.Error(err)
|
logd.Error(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if res.StatusCode != 200 {
|
if res.StatusCode != 204 {
|
||||||
logd.Error(string(data))
|
logd.Error(res.StatusCode, string(data))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,7 +84,6 @@ func (p *pingRPC) PingFunc(slug string) {
|
|||||||
logd.Error(err)
|
logd.Error(err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
logd.Print(string(data))
|
|
||||||
if rep.StatusCode != 200 {
|
if rep.StatusCode != 200 {
|
||||||
logd.Error(string(data))
|
logd.Error(string(data))
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user