File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import (
2424 "math/rand"
2525 "os"
2626 "path/filepath"
27-
2827 // Import sqlite3 manually.
2928 _ "github.com/CovenantSQL/go-sqlite3-encrypt"
3029)
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import (
2626 "github.com/CovenantSQL/CovenantSQL/conf"
2727 "github.com/CovenantSQL/CovenantSQL/utils/log"
2828 uuid "github.com/satori/go.uuid"
29-
3029 // Load sqlite3 database driver.
3130 _ "github.com/CovenantSQL/go-sqlite3-encrypt"
3231)
Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ import (
3434 "testing"
3535 "time"
3636
37- sqlite3 "github.com/CovenantSQL/go-sqlite3-encrypt"
38- . "github.com/smartystreets/goconvey/convey"
39-
4037 "github.com/CovenantSQL/CovenantSQL/blockproducer/interfaces"
4138 "github.com/CovenantSQL/CovenantSQL/client"
4239 "github.com/CovenantSQL/CovenantSQL/conf"
@@ -49,6 +46,8 @@ import (
4946 "github.com/CovenantSQL/CovenantSQL/types"
5047 "github.com/CovenantSQL/CovenantSQL/utils"
5148 "github.com/CovenantSQL/CovenantSQL/utils/log"
49+ sqlite3 "github.com/CovenantSQL/go-sqlite3-encrypt"
50+ . "github.com/smartystreets/goconvey/convey"
5251)
5352
5453var (
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import (
2828 "runtime"
2929
3030 "github.com/CovenantSQL/CovenantSQL/metric"
31-
3231 //"runtime/trace"
3332 "syscall"
3433 "time"
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ package hash
1919import (
2020 "encoding/binary"
2121 "hash/fnv"
22-
2322 // "crypto/sha256" benchmark is at least 10% faster on
2423 // i7-4870HQ CPU @ 2.50GHz than "github.com/minio/sha256-simd"
2524 "crypto/sha256"
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import (
2626
2727 "github.com/CovenantSQL/CovenantSQL/twopc"
2828 "github.com/CovenantSQL/CovenantSQL/utils/log"
29-
3029 // Register CovenantSQL/go-sqlite3-encrypt engine.
3130 _ "github.com/CovenantSQL/go-sqlite3-encrypt"
3231)
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 The CovenantSQL Authors.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ package worker
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
2222 "path/filepath"
2323
2424 "github.com/CovenantSQL/CovenantSQL/conf"
25-
2625 //"runtime/trace"
2726 "sync"
2827 "time"
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
2222 "os"
2323 "path"
2424 "sync/atomic"
25-
2625 //"runtime/trace"
2726 "sync"
2827 "syscall"
You can’t perform that action at this time.
0 commit comments