refactor(cache): rename NewCache to New
This commit is contained in:
parent
eab73a3b19
commit
c6ca02d8ae
2 changed files with 2 additions and 2 deletions
2
internal/cache/cache.go
vendored
2
internal/cache/cache.go
vendored
|
|
@ -9,7 +9,7 @@ type Cache struct {
|
|||
items sync.Map
|
||||
}
|
||||
|
||||
func NewCache() *Cache {
|
||||
func New() *Cache {
|
||||
return &Cache{}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ func newComposer(cfg *config.Config, chat *Model) *composer {
|
|||
cfg: cfg,
|
||||
chat: chat,
|
||||
sendMessageData: &api.SendMessageData{},
|
||||
cache: cache.NewCache(),
|
||||
cache: cache.New(),
|
||||
mentionsList: mentionslist.NewModel(cfg),
|
||||
}
|
||||
c.Box = ui.ConfigureBox(c.Box, &cfg.Theme)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue