Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Wrong instruction in Rate Limiting #674

Open
njh7799 opened this issue Jan 31, 2020 · 1 comment
Open

Wrong instruction in Rate Limiting #674

njh7799 opened this issue Jan 31, 2020 · 1 comment

Comments

@njh7799
Copy link

njh7799 commented Jan 31, 2020

There is a wrong instruction in here.

Quote of TotalTime and TotalCPUTime are interchanged.

type RateLimiting struct {
    CallCount                   int    `json:"call_count"`                      // Percentage of calls made for this business ad account.
    TotalTime                   int    `json:"total_time"`                      // Percentage of the total CPU time that has been used.
    TotalCPUTime                int    `json:"total_cputime"`                   // Percentage of the total time that has been used.
    Type                        string `json:"type"`                            // Type of rate limit logic being applied.
    EstimatedTimeToRegainAccess int    `json:"estimated_time_to_regain_access"` // Time in minutes to resume calls.
}

must be

type RateLimiting struct {
    CallCount                   int    `json:"call_count"`                      // Percentage of calls made for this business ad account.
    TotalTime                   int    `json:"total_time"`                      // Percentage of the total time that has been used.
    TotalCPUTime                int    `json:"total_cputime"`                   // Percentage of the total CPU time that has been used.
    Type                        string `json:"type"`                            // Type of rate limit logic being applied.
    EstimatedTimeToRegainAccess int    `json:"estimated_time_to_regain_access"` // Time in minutes to resume calls.
}
@jackwilsdon
Copy link

This is an issue with https://github.com/huandu/facebook, this repository is the source for godoc.org itself, not the packages documented by it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants