MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getKeyStruct

Method getKeyStruct

lib/storage/s3.ts:160–165  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

158 }
159
160 getKeyStruct(id: string) {
161 return {
162 prefix: {S: id.substring(0, PREFIX_LENGTH)},
163 unique_subhash: {S: id},
164 };
165 }
166
167 async expandId(id: string): Promise<ExpandedShortLink> {
168 // By just getting the item and not trying to update it, we save an update when the link does not exist

Callers 2

expandIdMethod · 0.95
incrementViewCountMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected