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>
22 lines
581 B
Go
22 lines
581 B
Go
package dht
|
|
|
|
import (
|
|
internalConfig "github.com/libp2p/go-libp2p-kad-dht/internal/config"
|
|
"github.com/libp2p/go-libp2p/core/routing"
|
|
)
|
|
|
|
// Quorum is a DHT option that tells the DHT how many peers it needs to get
|
|
// values from before returning the best one. Zero means the DHT query
|
|
// should complete instead of returning early.
|
|
//
|
|
// Default: 0
|
|
func Quorum(n int) routing.Option {
|
|
return func(opts *routing.Options) error {
|
|
if opts.Other == nil {
|
|
opts.Other = make(map[interface{}]interface{}, 1)
|
|
}
|
|
opts.Other[internalConfig.QuorumOptionKey{}] = n
|
|
return nil
|
|
}
|
|
}
|