conditionally build elastic, gocdk to reduce binary size

This commit is contained in:
chrislu
2022-04-21 01:10:46 -07:00
parent 6994e88192
commit 3885374edf
10 changed files with 137 additions and 72 deletions

View File

@@ -0,0 +1,14 @@
//go:build !elastic
// +build !elastic
package command
import (
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
)
func sendToElasticSearchFunc(servers string, esIndex string) (func(resp *filer_pb.SubscribeMetadataResponse) error, error) {
return func(resp *filer_pb.SubscribeMetadataResponse) error {
return nil
}, nil
}