Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
7a2f757f
Commit
7a2f757f
authored
4 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Clean up code
parent
0bb71608
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!23
Release
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/client.go
+1
-3
1 addition, 3 deletions
api/client.go
storage/auth/store.go
+1
-3
1 addition, 3 deletions
storage/auth/store.go
storage/partition/store.go
+1
-1
1 addition, 1 deletion
storage/partition/store.go
with
3 additions
and
7 deletions
api/client.go
+
1
−
3
View file @
7a2f757f
...
...
@@ -563,8 +563,6 @@ func (c *Client) DeleteContact(partnerId *id.ID) error {
return
err
}
c
.
storage
.
Conversations
()
.
Delete
(
partnerId
)
// todo: find a way to clean partition up?
//c.storage.Partition().Clean()
return
nil
}
...
...
This diff is collapsed.
Click to expand it.
storage/auth/store.go
+
1
−
3
View file @
7a2f757f
...
...
@@ -118,7 +118,7 @@ func LoadStore(kv *versioned.KV, grp *cyclic.Group, privKeys []*cyclic.Int) (*St
PrivKey
:
nil
,
Request
:
r
,
}
jww
.
INFO
.
Printf
(
"Loaded send request for %s"
,
sr
.
partner
)
jww
.
DEBUG
.
Printf
(
"Loaded send request for %s"
,
sr
.
partner
)
rid
=
sr
.
partner
r
.
sent
=
sr
...
...
@@ -135,7 +135,6 @@ func LoadStore(kv *versioned.KV, grp *cyclic.Group, privKeys []*cyclic.Int) (*St
default
:
jww
.
FATAL
.
Panicf
(
"Unknown request type: %d"
,
r
.
rt
)
}
jww
.
INFO
.
Printf
(
"LoadStore partner: %s"
,
partner
)
//store in the request map
s
.
requests
[
*
rid
]
=
r
...
...
@@ -146,7 +145,6 @@ func LoadStore(kv *versioned.KV, grp *cyclic.Group, privKeys []*cyclic.Int) (*St
func
(
s
*
Store
)
save
()
error
{
requestIDList
:=
make
([]
requestDisk
,
len
(
s
.
requests
))
jww
.
INFO
.
Printf
(
"Saving Auth Store"
)
index
:=
0
for
pid
,
r
:=
range
s
.
requests
{
rDisk
:=
requestDisk
{
...
...
This diff is collapsed.
Click to expand it.
storage/partition/store.go
+
1
−
1
View file @
7a2f757f
...
...
@@ -22,7 +22,7 @@ import (
type
multiPartID
[
16
]
byte
const
packagePrefix
=
"Partition"
const
clearPartitionInterval
=
12
*
time
.
Hour
const
clearPartitionInterval
=
5
*
time
.
Hour
const
clearPartitionThreshold
=
24
*
time
.
Hour
type
Store
struct
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment