aboutsummaryrefslogtreecommitdiffstats
path: root/storage/transactional/config.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-12-10 20:18:50 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2018-12-10 20:18:50 +0100
commit12dc3ef13e5c783b9e304aa8b6a2f7097880ab87 (patch)
tree9425626a16f47f73fc7dd2128d1ea51b5d1be5a3 /storage/transactional/config.go
parenta2b39f540e5b07cf361b530e19de30707b8ca0d7 (diff)
downloadgo-git-12dc3ef13e5c783b9e304aa8b6a2f7097880ab87.tar.gz
storage: transactional, new storage with transactional capabilities
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'storage/transactional/config.go')
-rw-r--r--storage/transactional/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/transactional/config.go b/storage/transactional/config.go
index 2fc6583..fec1f28 100644
--- a/storage/transactional/config.go
+++ b/storage/transactional/config.go
@@ -22,6 +22,14 @@ func (c *ConfigStorage) SetConfig(cfg *config.Config) error {
return nil
}
+func (c *ConfigStorage) Config() (*config.Config, error) {
+ if !c.set {
+ return c.ConfigStorer.Config()
+ }
+
+ return c.temporal.Config()
+}
+
func (c *ConfigStorage) Commit() error {
if !c.set {
return nil