Jelajahi Sumber

Merge pull request #1788 from yichengq/233

rafthttp: increase the size of streaming buffer
Yicheng Qin 11 tahun lalu
induk
melakukan
416b799ecf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      rafthttp/streamer.go

+ 1 - 1
rafthttp/streamer.go

@@ -34,7 +34,7 @@ import (
 )
 )
 
 
 const (
 const (
-	streamBufSize = 1024
+	streamBufSize = 4096
 )
 )
 
 
 type WriteFlusher interface {
 type WriteFlusher interface {