Skip to content

Commit a088a33

Browse files
committed
add clarifying comment for default strat, add examples
1 parent 0ef1add commit a088a33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/proto/FunctionRpc.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ message FunctionEnvironmentReloadRequest {
247247
message FunctionEnvironmentReloadResponse {
248248
enum CapabilitiesUpdateStrategy {
249249
// overwrites existing values and appends new ones
250+
// ex. worker init: {A: foo, B: bar} + env reload: {A:foo, B: foo, C: foo} -> {A: foo, B: foo, C: foo}
250251
merge = 0;
251252
// existing capabilities are cleared and new capabilities are applied
253+
// ex. worker init: {A: foo, B: bar} + env reload: {A:foo, C: foo} -> {A: foo, C: foo}
252254
replace = 1;
253255
}
254256
// After specialization, worker sends capabilities & metadata.
@@ -260,7 +262,8 @@ message FunctionEnvironmentReloadResponse {
260262

261263
// Status of the response
262264
StatusResult result = 3;
263-
265+
266+
// If no strategy is defined, the host will default to merge
264267
CapabilitiesUpdateStrategy capabilities_update_strategy = 4;
265268
}
266269

0 commit comments

Comments
 (0)