Skip to content

Commit 1ee93a1

Browse files
committed
refactor: call seconds seconds
1 parent 397931e commit 1ee93a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function Data (type, data) {
9696

9797
if (!isNaN(this.mtime)) {
9898
mtime = {
99-
value: this.mtime,
99+
seconds: this.mtime,
100100
hrValue: []
101101
}
102102
}
@@ -130,7 +130,7 @@ Data.unmarshal = (marsheled) => {
130130
}
131131

132132
if (decoded.mtime) {
133-
obj.mtime = decoded.mtime.value
133+
obj.mtime = decoded.mtime.seconds
134134
}
135135

136136
return obj

src/unixfs.proto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ message Mode {
2929
}
3030
3131
message Mtime {
32-
required int64 value = 1;
32+
required int64 seconds = 1;
3333
repeated int64 hrValue = 2;
3434
}`

0 commit comments

Comments
 (0)