graphql-engine/server/lib/resource-pool
Samir Talwar be67b0db59 server: Make HLint pass, by hook or by crook.
This fixes the simple HLint warnings, and adds a few suppressions to avoid noise.

The suppressions don't really solve the problems, but I think the warnings here are quite benign and I'm uncomfortable with how likely I would be to introduce a bug during refactoring.

In the case of _pg-client_ and _resource-pool_, we can't use the recommended functions anyway, and there doesn't seem to be a way to tell HLint to ignore entire packages.

I have updated the `make` targets to only fail if errors or warnings are found, not suggestions. This brings it in line with the CI job.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8910
GitOrigin-RevId: 596277b4ae5833876fc3f43875208c1279518a59
2023-04-25 14:03:02 +00:00
..
Data server: Make HLint pass, by hook or by crook. 2023-04-25 14:03:02 +00:00
test server: Make HLint pass, by hook or by crook. 2023-04-25 14:03:02 +00:00
.hgignore [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00
.hgtags [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00
LICENSE [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00
README.markdown [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00
resource-pool.cabal [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00
Setup.lhs [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00

Hasura fork

This is a fork of the package resource-pool with the following changes:

  • createPool' allows setting a timeout on resource acquisition.
  • getInUseResourceCount counts the number of resources in use.

Welcome to pool

pool is a fast Haskell library for managing medium-lifetime pooled resources, such as database connections.

Join in!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/bos/pool.git

There's also a Mercurial mirror:

  • hg clone http://bitbucket.org/bos/pool

(You can create and contribute changes using either git or Mercurial.)

Authors

This library is written and maintained by Bryan O'Sullivan, bos@serpentine.com.