Skip to content

Commit

Permalink
Adds a comment about the embedded struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Phillips committed Mar 5, 2016
1 parent ddf703d commit 37bd28f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consul/state/prepared_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ func isUUID(str string) bool {
// queryWrapper is an internal structure that is used to store a query alongside
// its compiled template, which can be nil.
type queryWrapper struct {
// We embed the PreparedQuery structure so that the UUID field indexer
// can see the ID directly.
*structs.PreparedQuery

// ct is the compiled template, or nil if the query isn't a template. The
// state store manages this and keeps it up to date every time the query
// changes.
ct *prepared_query.CompiledTemplate
}

Expand Down

0 comments on commit 37bd28f

Please sign in to comment.