mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-13 11:54:46 -04:00
Corrected ValuesToMapping to order correctly
This commit is contained in:
@ -34,9 +34,11 @@ func (m MappingValues) Get(key I2PString) I2PString {
|
||||
// ValuesToMapping creates a *Mapping using MappingValues.
|
||||
// The values are sorted in the order defined in mappingOrder.
|
||||
func ValuesToMapping(values MappingValues) *Mapping {
|
||||
mappingOrder(values)
|
||||
|
||||
// Default length to 2 * len
|
||||
// 1 byte for ;
|
||||
// 1 byte for =
|
||||
// 1 byte for ';'
|
||||
// 1 byte for '='
|
||||
log.WithFields(logrus.Fields{
|
||||
"values_count": len(values),
|
||||
}).Debug("Converting MappingValues to Mapping")
|
||||
|
Reference in New Issue
Block a user