Apply code review feedback to client refactor

- Rename phase_time to step_time for consistency with Step enum
- Unify blob_size and file_size into single blob_size field
- Merge toastyfs_alloc into toastyfs_init, returning malloced ToastyFS*
- Replace (MessageHeader*)&msg casts with &msg.base
- Replace !resp.size with explicit resp.size == 0

https://claude.ai/code/session_018MRQTdAZoBCXJZgdP4U6V6
This commit is contained in:
Claude
2026-02-21 11:54:21 +00:00
parent 337cdad885
commit 78f2e5112b
3 changed files with 26 additions and 28 deletions
+1 -2
View File
@@ -24,8 +24,7 @@ typedef struct {
typedef struct ToastyFS ToastyFS;
ToastyFS *toastyfs_alloc(void);
int toastyfs_init(ToastyFS *tfs, uint64_t client_id, char **addrs, int num_addrs);
ToastyFS *toastyfs_init(uint64_t client_id, char **addrs, int num_addrs);
void toastyfs_free(ToastyFS *tfs);
void toastyfs_process_events(ToastyFS *tfs, void **ctxs, struct pollfd *pdata, int pnum);