Migrate Status.SaveOrUpdate to Sync by default (#11359)

* Migrate Status.SaveOrUpdate to Sync by default

* address pr comments
Этот коммит содержится в:
Sheshagiri Rao Mallipedhi
2019-06-24 15:33:29 +05:30
коммит произвёл Jesús Espino
родитель 0199cef145
Коммит cca41427a4
8 изменённых файлов: 44 добавлений и 64 удалений

Просмотреть файл

@@ -94,7 +94,6 @@ func TestGenerateKey_TrustedHeader(t *testing.T) {
req.RemoteAddr = "10.10.10.5:80"
req.Header.Set("X-Forwarded-For", "10.6.3.1, 10.5.1.2")
rateLimiter, _ := NewRateLimiter(genRateLimitSettings(true, true, ""), []string{"X-Forwarded-For"})
key := rateLimiter.GenerateKey(req)
require.Equal(t, "10.6.3.1", key, "Wrong key on test with allowed trusted proxy header")