docs: correct stale M2/M3 comments (SSE shipped, conflict handling live) 📝
This commit is contained in:
parent
552349104a
commit
cfdd2f16a2
2 changed files with 5 additions and 5 deletions
|
|
@ -155,7 +155,7 @@ func publishCmd() *cobra.Command {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if res.Conflict {
|
if res.Conflict {
|
||||||
return fmt.Errorf("share %q advanced on the hub (head %s) — pull/merge lands in M3", share, short(res.Head))
|
return fmt.Errorf("share %q already has content on the hub (head %s) — mount it for two-way sync: devbox mount %s <dir>", share, short(res.Head), share)
|
||||||
}
|
}
|
||||||
|
|
||||||
out := cmd.OutOrStdout()
|
out := cmd.OutOrStdout()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// Package proto defines devbox's hub<->device wire types and endpoint paths.
|
// Package proto defines devbox's hub<->device wire types and endpoint paths.
|
||||||
// Transport is JSON over HTTP (blobs are raw bytes). One TLS endpoint, bearer
|
// Transport is JSON over HTTP (blobs are raw bytes). One endpoint, bearer auth.
|
||||||
// auth. WebSocket change events arrive in M3.
|
// Change events stream over SSE (GET /v1/events).
|
||||||
package proto
|
package proto
|
||||||
|
|
||||||
// Endpoint paths (all under the hub base URL).
|
// Endpoint paths (all under the hub base URL).
|
||||||
|
|
@ -81,8 +81,8 @@ type PushRequest struct {
|
||||||
Chunks []ChunkRef `json:"chunks"` // every distinct chunk + size
|
Chunks []ChunkRef `json:"chunks"` // every distinct chunk + size
|
||||||
}
|
}
|
||||||
|
|
||||||
// PushResponse reports the new snapshot id and head. Conflict handling is M3
|
// PushResponse reports the new snapshot id and head. Conflict is true when the
|
||||||
// (Conflict is always false in M2's one-way push).
|
// device pushed against a stale parent: it must pull + reconcile, then retry.
|
||||||
type PushResponse struct {
|
type PushResponse struct {
|
||||||
Snapshot string `json:"snapshot"`
|
Snapshot string `json:"snapshot"`
|
||||||
Head string `json:"head"`
|
Head string `json:"head"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue