Add TODO for a theoretical bug I noticed

This commit is contained in:
David Dworken 2023-09-12 17:51:55 -07:00
parent 858575daf1
commit aebf526d1f
No known key found for this signature in database

View File

@ -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)