Skip to content

Commit

Permalink
fix: map now is sorted
Browse files Browse the repository at this point in the history
Signed-off-by: nabil salah <[email protected]>
  • Loading branch information
Nabil-Salah committed Nov 5, 2024
1 parent 41612b2 commit 32239cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bencoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func Encoder(benco interface{}) ([]byte, error) {
}
encoded = append(encoded, 'e')

case map[string]string:
case map[string]interface{}:
encoded = append(encoded, 'd')
var keyArr []string
for key := range ty {
Expand Down

0 comments on commit 32239cc

Please sign in to comment.