add an option for webDomain

This commit is contained in:
Hamidreza Ghavami
2023-05-31 01:21:14 +04:30
parent a2d8c98b0d
commit 8170b65db4
7 changed files with 14 additions and 5 deletions

View File

@@ -18,7 +18,6 @@ type HashStorage struct {
sync.RWMutex
Data map[string]HashEntry
Expiration time.Duration
}
func NewHashStorage(expiration time.Duration) *HashStorage {
@@ -46,7 +45,6 @@ func (h *HashStorage) SaveHash(query string) string {
return md5HashString
}
func (h *HashStorage) GetValue(hash string) (string, bool) {
h.RLock()
defer h.RUnlock()