diff --git a/internal/cache/cache.go b/internal/cache/cache.go index e53742c..49616f4 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -9,7 +9,7 @@ type Cache struct { items sync.Map } -func NewCache() *Cache { +func New() *Cache { return &Cache{} } diff --git a/internal/ui/chat/composer.go b/internal/ui/chat/composer.go index e90eaf5..1c4ddf2 100644 --- a/internal/ui/chat/composer.go +++ b/internal/ui/chat/composer.go @@ -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)