We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95fed20 commit ae07e53Copy full SHA for ae07e53
service/assistant/functions/poi.go
@@ -96,14 +96,6 @@ func searchPoiThought(args interface{}) string {
96
return fmt.Sprintf("Looking for %s nearby...", poiQuery.Query)
97
}
98
99
-func chargeQuota(ctx context.Context, quotaTracker *quota.Tracker) {
100
- // Try charging a global quota of 1,000 calls first.
101
- // Charge the user for the function call.
102
- if err := quotaTracker.ChargeCredits(ctx, quota.PoiSearchCredits); err != nil {
103
- log.Printf("Failed to charge credits: %v", err)
104
- }
105
-}
106
-
107
func searchPoi(ctx context.Context, quotaTracker *quota.Tracker, args interface{}) interface{} {
108
ctx, span := beeline.StartSpan(ctx, "search_poi")
109
defer span.Send()
0 commit comments