INNER CODE UNIT · Go

opts

cadence-workflow/cadence · cmd/sharddistributor-canary/main.go:58

func opts(fixedNamespace, ephemeralNamespace, endpoint string, canaryGRPCPort int, numFixedExecutors, numEphemeral int) fx.Option {
	configuration := clientcommon.Config{
		Namespaces: []clientcommon.NamespaceConfig{
			{Namespace: fixedNamespace, HeartBeatInterval: 1 * time.Second},
			{Namespace: ephemeralNamespace, HeartBeatInterval: 1 * time.Second},
		},
	}

	canaryGRPCAddress := fmt.Sprintf("127.0.0.1:%d", canaryGRPCPort)

	// Create listener for GRPC inbound
	listener, err := net.Listen("tcp", canaryGRPCAddress)
	if err != nil {
		panic(err)
	}

	transport := grpc.NewTransport()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…