Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Jan 16, 2025
1 parent dddbd65 commit 64fdd6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion platform/view/services/db/driver/memory/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SPDX-License-Identifier: Apache-2.0
package mem

import (
"time"

"github.com/hyperledger-labs/fabric-smart-client/pkg/utils"
driver2 "github.com/hyperledger-labs/fabric-smart-client/platform/common/driver"
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/driver"
Expand All @@ -20,13 +22,17 @@ const (
)

var (
opts = common.Opts{
maxIdleConns = 2
maxIdleTime = time.Minute
opts = common.Opts{
Driver: "sqlite",
DataSource: "file::memory:?cache=shared",
TablePrefix: "memory",
SkipCreateTable: false,
SkipPragmas: false,
MaxOpenConns: 10,
MaxIdleConns: &maxIdleConns,
MaxIdleTime: &maxIdleTime,
}
)

Expand Down

0 comments on commit 64fdd6c

Please sign in to comment.