aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-02-10 20:23:04 -0800
committerChris Lu <chris.lu@gmail.com>2020-02-10 20:23:04 -0800
commitac3fc922566c42fb2d1d5603e7b0c167b868fce7 (patch)
tree3451368af70559711e435ba3dbb92c3752ff919c /weed/command/volume.go
parent29945fad51320deb7c72f57d1c7a84bcc51429da (diff)
downloadseaweedfs-origin/fasthttp.tar.xz
seaweedfs-origin/fasthttp.zip
partially doneorigin/fasthttp
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 9d665d143..5e03ad296 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -11,6 +11,7 @@ import (
"time"
"github.com/spf13/viper"
+ "github.com/valyala/fasthttp"
"google.golang.org/grpc"
"github.com/chrislusf/seaweedfs/weed/security"
@@ -165,6 +166,8 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
*v.fileSizeLimitMB,
)
+ go fasthttp.ListenAndServe(":8081", volumeServer.HandleFastHTTP)
+
// starting grpc server
grpcS := v.startGrpcService(volumeServer)