Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TeDomum
Garage
Commits
c21317dc
Commit
c21317dc
authored
Jan 15, 2021
by
Alex Auvolat
Browse files
Branch out garage_model from 0.1.0 to fix incompatibility with garage_util 0.1.1
parent
3b0b1108
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
c21317dc
This diff is collapsed.
Click to expand it.
Cargo.toml
View file @
c21317dc
...
...
@@ -4,8 +4,8 @@ members = [
"src/rpc"
,
"src/table"
,
"src/model"
,
"src/api"
,
"src/garage"
,
#
"src/api",
#
"src/garage",
]
[profile.dev]
...
...
src/model/Cargo.toml
View file @
c21317dc
[package]
name
=
"garage_model"
version
=
"0.
1.0
"
name
=
"garage_model
_010b
"
version
=
"0.
0.1
"
authors
=
[
"Alex Auvolat <alex@adnab.me>"
]
edition
=
"2018"
license
=
"GPL-3.0"
...
...
src/model/block.rs
View file @
c21317dc
...
...
@@ -123,7 +123,7 @@ impl BlockManager {
Message
::
PutBlock
(
m
)
=>
self
.write_block
(
&
m
.hash
,
&
m
.data
)
.await
,
Message
::
GetBlock
(
h
)
=>
self
.read_block
(
h
)
.await
,
Message
::
NeedBlockQuery
(
h
)
=>
self
.need_block
(
h
)
.await
.map
(
Message
::
NeedBlockReply
),
_
=>
Err
(
Error
::
BadR
equest
(
format!
(
"Unexpected RPC message"
))),
_
=>
Err
(
Error
::
BadR
PC
(
format!
(
"Unexpected RPC message"
))),
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment