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

Commit

Permalink
1.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
sokomishalov committed Oct 15, 2019
1 parent 9b720f5 commit 800fa15
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions commons-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>ru.sokomishalov.commons</groupId>
<artifactId>commons-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
</parent>

<artifactId>commons-core</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>

<properties>
<kotlin.version>1.3.50</kotlin.version>
Expand Down
6 changes: 3 additions & 3 deletions commons-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>ru.sokomishalov.commons</groupId>
<artifactId>commons-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
</parent>

<artifactId>commons-spring</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>

<properties>
<kotlin.version>1.3.50</kotlin.version>
Expand All @@ -31,7 +31,7 @@
<dependency>
<groupId>ru.sokomishalov.commons</groupId>
<artifactId>commons-core</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.mongodb.reactivestreams.client.MongoCollection
import kotlinx.coroutines.reactive.awaitFirstOrElse
import kotlinx.coroutines.reactive.awaitSingle
import org.bson.Document
import org.springframework.boot.autoconfigure.mongo.MongoProperties
import ru.sokomishalov.commons.core.common.unit
import ru.sokomishalov.commons.spring.locks.cluster.LockInfo
import ru.sokomishalov.commons.spring.locks.cluster.LockProvider
Expand All @@ -39,7 +40,8 @@ import java.util.*

class MongoReactiveLockProvider(
private val client: MongoClient = MongoClients.create(),
private val databaseName: String = DEFAULT_DB_NAME,
private val mongoProperties: MongoProperties? = null,
private val databaseName: String = mongoProperties?.mongoClientDatabase ?: DEFAULT_DB_NAME,
private val collectionName: String = DEFAULT_COLLECTION_NAME
) : LockProvider {

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ru.sokomishalov.commons</groupId>
<artifactId>commons-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<packaging>pom</packaging>

<properties>
Expand Down

0 comments on commit 800fa15

Please sign in to comment.