mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-22 22:28:51 +01:00
Add TODO for a theoretical bug I noticed
This commit is contained in:
parent
858575daf1
commit
aebf526d1f
@ -235,6 +235,7 @@ func GetConfig() (ClientConfig, error) {
|
||||
}
|
||||
|
||||
func SetConfig(config ClientConfig) error {
|
||||
// TODO: Currently there is a consistency bug here where we update fields in the ClientConfig, and we write that to disk, but we never re-store it in hctx
|
||||
serializedConfig, err := json.Marshal(config)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to serialize config: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user