adding username translation

This commit is contained in:
Laurent Le Houerou 2021-12-22 11:08:44 +04:00
parent a842e8f8e6
commit 3887d1299d

View File

@ -5,6 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/rs/zerolog/log"
"io" "io"
"net/http" "net/http"
"sync" "sync"
@ -64,5 +65,7 @@ func (s *ProfileService) GetUsername(address string) string {
s.cache[address] = name s.cache[address] = name
} }
log.Debug().Msgf("[PROFILE] %s -> %s", address, s.cache[address])
return s.cache[address] return s.cache[address]
} }