Skip to content

Commit 37a339e

Browse files
committed
fix: reference schema
1 parent 7ae5acf commit 37a339e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Fix
10+
11+
- Fix register schema
912

1013
## [0.3.0]
1114

src/register.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const RUNTIME_VERSION: &str = "Rust - No runtime version provided yet";
1414
* Usefull for Apollo Studio
1515
*/
1616
pub fn sha<Q: ObjectType + 'static, M: ObjectType + 'static, S: SubscriptionType + 'static>(
17-
schema: Schema<Q, M, S>,
17+
schema: &Schema<Q, M, S>,
1818
) -> String {
1919
let mut hasher = Sha256::new();
2020
let schema_sdl = schema.sdl();
@@ -39,7 +39,7 @@ pub async fn register<
3939
S: SubscriptionType + 'static,
4040
>(
4141
authorization_token: &str,
42-
schema: Schema<Q, M, S>,
42+
schema: &Schema<Q, M, S>,
4343
server_id: &str,
4444
variant: &str,
4545
user_version: &str,

0 commit comments

Comments
 (0)