mirror of https://github.com/milvus-io/milvus.git
23 lines
524 B
Go
23 lines
524 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package streamingutil
|
|
|
|
import "os"
|
|
|
|
// SetStreamingServiceEnabled set the env that indicates whether the streaming service is enabled.
|
|
func SetStreamingServiceEnabled() {
|
|
err := os.Setenv(MilvusStreamingServiceEnabled, "1")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
// UnsetStreamingServiceEnabled unsets the env that indicates whether the streaming service is enabled.
|
|
func UnsetStreamingServiceEnabled() {
|
|
err := os.Setenv(MilvusStreamingServiceEnabled, "0")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|