chore: address comments

This commit is contained in:
email
2022-02-05 11:43:25 +08:00
parent 226e9c156a
commit 925773dbd6
13 changed files with 45 additions and 39 deletions

View File

@@ -11,7 +11,7 @@ import (
func GetDevProfile(dataDir string) Profile {
return Profile{
mode: "8080",
port: 1234,
port: 8080,
dsn: fmt.Sprintf("file:%s/memos_dev.db", dataDir),
}
}

View File

@@ -79,7 +79,7 @@ func (m *Main) Run() error {
m.db = db
s := server.NewServer()
s := server.NewServer(m.profile.port)
s.ShortcutService = store.NewShortcutService(db)
s.MemoService = store.NewMemoService(db)