Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Make notion class closeable
Browse files Browse the repository at this point in the history
  • Loading branch information
petersamokhin committed Nov 22, 2020
1 parent ec2c5d4 commit 01c8336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repositories {
}

group = "com.petersamokhin.notionapi"
version = "0.0.5"
version = "0.0.6"


dependencies {
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/com/petersamokhin/notionapi/Notion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class Notion(private val token: String, private var httpClient: HttpClient) {
)
}

fun close() = httpClient.close()

companion object {
private const val NOTION_TOKEN_COOKIE_KEY = "token_v2"
}
Expand Down

0 comments on commit 01c8336

Please sign in to comment.