Merge pull request #112 from jkaninda/refactor

refactor: refactoring of code to meet all go-linter requirements
This commit is contained in:
2024-11-17 06:41:48 +01:00
committed by GitHub
3 changed files with 2 additions and 4 deletions

View File

@@ -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)
})
}

View File

@@ -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() {