Skip to content

Commit 01fe728

Browse files
authored
Merge branch 'master' into master
2 parents 90a3eb2 + 20082ea commit 01fe728

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pg_graphql"
3-
version = "1.5.3"
3+
version = "1.5.4"
44
edition = "2021"
55

66
[lib]

docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,7 @@
7878
## 1.5.3
7979
- bugfix: computed field returning a composite type was always null
8080

81+
## 1.5.4
82+
- bugfix: once a query panics, all subsequent queries return a lock poisoned error.
83+
8184
## master

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ type Account {
179179

180180
#### Relationship's Field
181181

182-
Use the `"local_name"` and `"foreign_name"` JSON keys to override a a relationships inbound and outbound field names.
182+
Use the `"local_name"` and `"foreign_name"` JSON keys to override a relationship's inbound and outbound field names.
183183

184184
```sql
185185
create table "Account"(

src/graphql.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,7 @@ pub enum __Type {
544544
#[cached(
545545
type = "SizedCache<u64, HashMap<String, __Field>>",
546546
create = "{ SizedCache::with_size(1000) }",
547-
convert = r#"{ calculate_hash(type_) }"#,
548-
sync_writes = true
547+
convert = r#"{ calculate_hash(type_) }"#
549548
)]
550549
pub fn field_map(type_: &__Type) -> HashMap<String, __Field> {
551550
let mut hmap = HashMap::new();
@@ -570,8 +569,7 @@ pub fn field_map(type_: &__Type) -> HashMap<String, __Field> {
570569
#[cached(
571570
type = "SizedCache<u64, HashMap<String, __InputValue>>",
572571
create = "{ SizedCache::with_size(1000) }",
573-
convert = r#"{ calculate_hash(type_) }"#,
574-
sync_writes = true
572+
convert = r#"{ calculate_hash(type_) }"#
575573
)]
576574
pub fn input_field_map(type_: &__Type) -> HashMap<String, __InputValue> {
577575
let mut hmap = HashMap::new();
@@ -3875,8 +3873,7 @@ pub struct __Schema {
38753873
#[cached(
38763874
type = "SizedCache<String, HashMap<String, __Type>>",
38773875
create = "{ SizedCache::with_size(200) }",
3878-
convert = r#"{ serde_json::ser::to_string(&schema.context.config).expect("schema config should be a string") }"#,
3879-
sync_writes = true
3876+
convert = r#"{ serde_json::ser::to_string(&schema.context.config).expect("schema config should be a string") }"#
38803877
)]
38813878
pub fn type_map(schema: &__Schema) -> HashMap<String, __Type> {
38823879
let tmap: HashMap<String, __Type> = schema

src/sql_types.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,7 @@ pub fn calculate_hash<T: Hash>(t: &T) -> u64 {
791791
#[cached(
792792
type = "SizedCache<u64, Result<Arc<Context>, String>>",
793793
create = "{ SizedCache::with_size(250) }",
794-
convert = r#"{ calculate_hash(_config) }"#,
795-
sync_writes = true
794+
convert = r#"{ calculate_hash(_config) }"#
796795
)]
797796
pub fn load_sql_context(_config: &Config) -> Result<Arc<Context>, String> {
798797
// cache value for next query

0 commit comments

Comments
 (0)