Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
openmole
Commits
708bf757
Unverified
Commit
708bf757
authored
Jul 11, 2016
by
Romain Reuillon
Browse files
[Plugin] fix: add missing close statement.
parent
fb493f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
openmole/plugins/org.openmole.plugin.source.db/src/main/scala/org/openmole/plugin/source/db/MongoDBSource.scala
View file @
708bf757
...
...
@@ -63,12 +63,14 @@ object MongoDBSource {
override
def
process
(
context
:
Context
,
executionContext
:
MoleExecutionContext
)(
implicit
rng
:
RandomProvider
)
=
{
val
mongoClient
=
MongoClient
(
host
.
from
(
context
),
port
)
val
db
=
mongoClient
(
database
.
from
(
context
))
val
c
=
db
(
collection
.
from
(
context
))
try
{
val
db
=
mongoClient
(
database
.
from
(
context
))
val
c
=
db
(
collection
.
from
(
context
))
Variable
(
prototype
,
query
(
context
,
c
)
)
Variable
(
prototype
,
query
(
context
,
c
)
)
}
finally
mongoClient
.
close
()
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment