From 07a81e272c8ff7517fa6a8a4bad96031bed33b77 Mon Sep 17 00:00:00 2001 From: Alain Jobart Date: Fri, 7 Aug 2015 08:50:50 -0700 Subject: [PATCH] Adding comment. --- go/cmd/vtgateclienttest/callerid.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/cmd/vtgateclienttest/callerid.go b/go/cmd/vtgateclienttest/callerid.go index e005d07ff3..5f70ef2db3 100644 --- a/go/cmd/vtgateclienttest/callerid.go +++ b/go/cmd/vtgateclienttest/callerid.go @@ -36,6 +36,11 @@ func newCallerIDClient(fallback vtgateservice.VTGateService) *callerIDClient { } } +// checkCallerID will see if this module is handling the request, +// and if it is, check the callerID from the context. +// Returns false if the query is not for this module. +// Returns true and the the error to return with the call +// if this module is handling the request. func (c *callerIDClient) checkCallerID(ctx context.Context, received string) (bool, error) { if !strings.HasPrefix(received, callerIDPrefix) { return false, nil