 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			66 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package upgrader
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 
 | |
| 	"github.com/libp2p/go-libp2p/core/network"
 | |
| 	"github.com/libp2p/go-libp2p/core/protocol"
 | |
| 	"github.com/libp2p/go-libp2p/core/transport"
 | |
| )
 | |
| 
 | |
| type transportConn struct {
 | |
| 	network.MuxedConn
 | |
| 	network.ConnMultiaddrs
 | |
| 	network.ConnSecurity
 | |
| 	transport transport.Transport
 | |
| 	scope     network.ConnManagementScope
 | |
| 	stat      network.ConnStats
 | |
| 
 | |
| 	muxer                     protocol.ID
 | |
| 	security                  protocol.ID
 | |
| 	usedEarlyMuxerNegotiation bool
 | |
| }
 | |
| 
 | |
| var _ transport.CapableConn = &transportConn{}
 | |
| 
 | |
| func (t *transportConn) Transport() transport.Transport {
 | |
| 	return t.transport
 | |
| }
 | |
| 
 | |
| func (t *transportConn) String() string {
 | |
| 	ts := ""
 | |
| 	if s, ok := t.transport.(fmt.Stringer); ok {
 | |
| 		ts = "[" + s.String() + "]"
 | |
| 	}
 | |
| 	return fmt.Sprintf(
 | |
| 		"<stream.Conn%s %s (%s) <-> %s (%s)>",
 | |
| 		ts,
 | |
| 		t.LocalMultiaddr(),
 | |
| 		t.LocalPeer(),
 | |
| 		t.RemoteMultiaddr(),
 | |
| 		t.RemotePeer(),
 | |
| 	)
 | |
| }
 | |
| 
 | |
| func (t *transportConn) Stat() network.ConnStats {
 | |
| 	return t.stat
 | |
| }
 | |
| 
 | |
| func (t *transportConn) Scope() network.ConnScope {
 | |
| 	return t.scope
 | |
| }
 | |
| 
 | |
| func (t *transportConn) Close() error {
 | |
| 	defer t.scope.Done()
 | |
| 	return t.MuxedConn.Close()
 | |
| }
 | |
| 
 | |
| func (t *transportConn) ConnState() network.ConnectionState {
 | |
| 	return network.ConnectionState{
 | |
| 		StreamMultiplexer:         t.muxer,
 | |
| 		Security:                  t.security,
 | |
| 		Transport:                 "tcp",
 | |
| 		UsedEarlyMuxerNegotiation: t.usedEarlyMuxerNegotiation,
 | |
| 	}
 | |
| }
 |