Skip to content

Commit

Permalink
add comment for returnStargateResponseToPool
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jan 19, 2024
1 parent 378492b commit 2192082
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wasmbinding/stargate_whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func setWhitelistedQuery[T any, PT protoTypeG[T]](queryPath string, _ PT) {
}
}

// returnStargateResponseToPool returns the provided protoMarshaler to the appropriate pool based on it's query path.
func returnStargateResponseToPool(queryPath string, pb codec.ProtoMarshaler) {
stargateResponsePools[queryPath].Put(pb)
}
Expand Down

0 comments on commit 2192082

Please sign in to comment.