[NebulousLabs/Sia] Persist renter cache settings, and renter bandwidth limiter settings (#3052)

lukechampine commented on this pull request.

> @@ -520,7 +522,7 @@ func testRenterStreamingCache(t *testing.T, tg *siatest.TestGroup) {
prev := rg.Settings.StreamCacheSize

// Test setting to 0
— if err := r.RenterSetStreamCacheSizePost(0); err != nil {
+ if err := r.RenterSetStreamCacheSizePost(0); err == nil {
t.Fatal(err, «Error in calling RenterSetStreamCacheSizePost(0)»)

should be `t.Fatal(«expected error when settings stream cache size to zero»)`

Добавить комментарий