Subs shouldn't take a model as an argument

This also nullifies the need for SubMap
This commit is contained in:
Christian Rocha
2020-05-04 18:51:47 -04:00
parent dada718393
commit b50ee76165
4 changed files with 6 additions and 16 deletions

View File

@@ -55,7 +55,7 @@ func update(message tea.Msg, mdl tea.Model) (tea.Model, tea.Cmd) {
func subscriptions(_ tea.Model) tea.Subs {
return tea.Subs{
"tick": func(_ tea.Model) tea.Msg {
"tick": func() tea.Msg {
time.Sleep(time.Second)
return tickMsg{}
},