Merge pull request #112 from jkaninda/refactor
refactor: refactoring of code to meet all go-linter requirements
This commit is contained in:
@@ -80,7 +80,7 @@ func (rl *RateLimiter) RateLimitMiddleware() mux.MiddlewareFunc {
|
||||
RespondWithError(w, http.StatusTooManyRequests, fmt.Sprintf("%d Too many requests, API requests limit exceeded. Please try again later", http.StatusTooManyRequests))
|
||||
}
|
||||
}
|
||||
// Proceed to the next handler if requests limit is not exceeded
|
||||
// Proceed to the next handler if the request limit is not exceeded
|
||||
next.ServeHTTP(w, r)
|
||||
})
|
||||
}
|
||||
|
||||
4
main.go
4
main.go
@@ -15,9 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
import (
|
||||
"github.com/jkaninda/goma-gateway/cmd"
|
||||
)
|
||||
import "github.com/jkaninda/goma-gateway/cmd"
|
||||
|
||||
func main() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user