mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 22:11:40 +02: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 {
|
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)
|
serializedConfig, err := json.Marshal(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to serialize config: %w", err)
|
return fmt.Errorf("failed to serialize config: %w", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user