Skip to content

Commit

Permalink
document predecence of keys in RunAddressData fields
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Nov 6, 2023
1 parent 0b5ed0e commit c4c7a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func NewContext(handle *Handle) *Context {
return &Context{handle: handle, cContext: cContext}
}

// RunAddressData provides address data to the Context.Run method.
// RunAddressData provides address data to the Context.Run method. If a given key is present in both
// RunAddressData.Persistent and RunAddressData.Ephemeral, the value from RunAddressData.Persistent will take precedence.
type RunAddressData struct {
// Persistent address data is scoped to the lifetime of a given Context, and subsquent calls to Context.Run with the
// same address name will be silently ignored.
Expand Down

0 comments on commit c4c7a98

Please sign in to comment.