Skip to content

Commit 996cefa

Browse files
committed
Fix directionLabel
1 parent 19a3f21 commit 996cefa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxy/cluster_connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ func (c *ClusterConnection) AcceptingOutboundTraffic() bool {
244244
// the Temporal API across the ClientConnInterface.
245245
func buildProxyServer(client grpc.ClientConnInterface, isInbound bool, serverCfg config.ProxyConfig, overrideExternalAddress string,
246246
namespaceTranslation config.NameTranslationConfig, searchAttrTranslation config.SATranslationConfig, observer *ReplicationStreamObserver, logger log.Logger) (*grpc.Server, error) {
247-
directionLabel := "inbound"
247+
directionLabel := "outbound"
248248
if isInbound {
249-
directionLabel = "outbound"
249+
directionLabel = "inbound"
250250
}
251251
serverOpts, err := MakeServerOptions(logger, isInbound, serverCfg.Server.TLS, serverCfg.ACLPolicy, namespaceTranslation, searchAttrTranslation)
252252
if err != nil {

0 commit comments

Comments
 (0)