mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-02 13:33:10 +00:00
Merge pull request #13 from codex-storage/chore/bump-codex-to-release-branch
chore: bump nim-codex to prototype release branch
This commit is contained in:
commit
a83c427561
@ -79,3 +79,13 @@ func TestPeerId(t *testing.T) {
|
||||
|
||||
t.Logf("Codex PeerId: %s", peerId)
|
||||
}
|
||||
|
||||
func TestStorageQuota(t *testing.T) {
|
||||
node := newCodexNode(t, Config{
|
||||
StorageQuota: 1024 * 1024 * 1024, // 1GB
|
||||
})
|
||||
|
||||
if node == nil {
|
||||
t.Fatal("expected codex node to be created")
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ func defaultConfigHelper(t *testing.T) Config {
|
||||
LogFormat: LogFormatNoColors,
|
||||
MetricsEnabled: false,
|
||||
BlockRetries: 3000,
|
||||
LogLevel: "ERROR",
|
||||
Nat: "none",
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,6 +43,10 @@ func newCodexNode(t *testing.T, opts ...Config) *CodexNode {
|
||||
if c.DiscoveryPort != 0 {
|
||||
config.DiscoveryPort = c.DiscoveryPort
|
||||
}
|
||||
|
||||
if c.StorageQuota != 0 {
|
||||
config.StorageQuota = c.StorageQuota
|
||||
}
|
||||
}
|
||||
|
||||
node, err := New(config)
|
||||
|
||||
2
vendor/nim-codex
vendored
2
vendor/nim-codex
vendored
@ -1 +1 @@
|
||||
Subproject commit 480bd3b65917da0f90ea43146bd73986ef5272e0
|
||||
Subproject commit 5a227dbb561672667c5c0285a417175b5004ddf7
|
||||
Loading…
x
Reference in New Issue
Block a user