diff options
author | Grail Finder <wohilas@gmail.com> | 2024-11-28 17:57:50 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2024-11-28 17:57:50 +0300 |
commit | 34d415c9308f2d089520c2a193cdf8393dcc6b5d (patch) | |
tree | bac545ddb1859f18f7d9d75ef5dd23d8c7d29b90 /tools.go | |
parent | 14d706f94a45ab43c51f9c03abea7b3588c571c7 (diff) |
Feat: add linter
Diffstat (limited to 'tools.go')
-rw-r--r-- | tools.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -73,8 +73,11 @@ func memorise(args ...string) []byte { Mind: args[1], UpdatedAt: time.Now(), } - store.Memorise(memory) - msg := fmt.Sprintf("info saved under the topic: %s", args[0]) + if _, err := store.Memorise(memory); err != nil { + logger.Error("failed to save memory", "err", err, "memoory", memory) + return []byte("failed to save info") + } + msg := "info saved under the topic:" + args[0] return []byte(msg) } @@ -104,7 +107,7 @@ func recallTopics(args ...string) []byte { return []byte(joinedS) } -func fullMemoryLoad() {} +// func fullMemoryLoad() {} type fnSig func(...string) []byte |